USB: gadget: function: remove redundant initialization of 'tv_nexus'
authorColin Ian King <colin.king@canonical.com>
Fri, 26 Jan 2018 15:39:00 +0000 (15:39 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 8 Mar 2018 13:12:01 +0000 (15:12 +0200)
commita127f4f228104d391a6aa62a9a57b2ba697f90c2
tree2acd5aba6f20d21420714c8cc4618491ee936d57
parentac87e560f7c0f91b62012e9a159c0681a373b922
USB: gadget: function: remove redundant initialization of 'tv_nexus'

Pointer tv_nexus is being initialized a value and this is never read
and is later being updated with the same value. Remove the redundant
initialization so that the assignment to tv_nexus is performed later
and more local to when it is being read.

Cleans up clang warning:
drivers/usb/gadget/function/f_tcm.c:1097:25: warning: Value stored to
'tv_nexus' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_tcm.c