]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: drop redundant NULL check
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 11 May 2012 14:25:51 +0000 (17:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 May 2012 23:54:11 +0000 (16:54 -0700)
commit539508657bed46f3365ce42ec0b75f0e0cb48674
treeb1cd845d33315ff4d0b286d9c165d8c6e7e907d5
parente92fd4cb8028301b505e0f749e7842a92b96ef01
usb: chipidea: drop redundant NULL check

Currently, gadget can't be NULL in _gadget_stop_activity().

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reported-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c