]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: gadget: net2272: remove redundant assignments to pointer 's'
authorColin Ian King <colin.king@canonical.com>
Thu, 30 May 2019 18:14:58 +0000 (19:14 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 18 Jun 2019 08:58:29 +0000 (11:58 +0300)
commitd78cc1a4b72a455ae53c434ddb8835035a332c5b
treeca36cc02f7efa9a60f06e508b1de9c2950c942cb
parent508595515f4bcfe36246e4a565cf280937aeaade
usb: gadget: net2272: remove redundant assignments to pointer 's'

The pointer 's' is being assigned however the pointer is
never used with either of these values before it it reassigned much
later on.  I suspect it was going to be used in the output of the
main control registers scnprintf but was omitted.  The assignments
of 's' to the driver name or the literal string are redundant and
can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/net2272.c