Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1610540

Re: [PATCH] usb: gadget: udc: remove redundant initial assignments to the pointer 's'

From Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Newsgroups linux.kernel
Subject Re: [PATCH] usb: gadget: udc: remove redundant initial assignments to the pointer 's'
Date 2017-03-28 12:30 +0200
Message-ID <tpWxY-69I-3@gated-at.bofh.it> (permalink)
References <tpLsS-6yQ-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello!

On 3/28/2017 1:34 AM, Colin King wrote:

> From: Colin Ian King <colin.king@canonical.com>
>
> The initial setting of pointer s to the driver name or to the literal
> string "(none)" is redundant as later it is always set to point to
> a different literal string before it is printed log.  Remove this

    Printed to log, perhaps?

> redundant code.
>
> Detected with CoverityScan, CID#1227032, CID#1227033 ("Unused Value")
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
[...]

MBR, Sergei

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] usb: gadget: udc:  remove redundant initial assignments to the pointer 's' Colin King <colin.king@canonical.com> - 2017-03-28 00:40 +0200
  RE: [PATCH] usb: gadget: udc:  remove redundant initial assignments  to the pointer 's' YUAN Linyu <Linyu.Yuan@alcatel-sbell.com.cn> - 2017-03-28 01:40 +0200
  Re: [PATCH] usb: gadget: udc: remove redundant initial assignments to  the pointer 's' Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2017-03-28 12:30 +0200

csiph-web