]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: function: remove redundant assignment to variable 'status'
authorColin Ian King <colin.king@canonical.com>
Fri, 24 Apr 2020 11:35:06 +0000 (12:35 +0100)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:39 +0000 (11:09 +0300)
commita7fbaf5d1c5439a6d2cb1b1c1c8c7637409f3603
tree818664d626005b57517fe7135b63c13aca663b12
parentb7674f1b16c40a86a56844c95ab6d7c099d8ec46
usb: gadget: function: remove redundant assignment to variable 'status'

The variable status is being assigned a value that is never read
and it is being updated later with a new value. The assignment
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/function/f_eem.c