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

From: Sergei Shtylyov
Date: Tue Mar 28 2017 - 06:20:47 EST


Hello!

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

From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
[...]

MBR, Sergei