Searched hist:dba328bab4c6fa4ec1ed3be616f7196865f2ce41 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/media/usb/ttusb-dec/ |
H A D | ttusb_dec.c | diff dba328bab4c6fa4ec1ed3be616f7196865f2ce41 Thu Jun 10 09:00:53 CDT 2021 Mauro Carvalho Chehab <mchehab+huawei@kernel.org> media: ttusb-dec: cleanup an error handling logic
Simplify the logic at ttusb_dec_send_command().
Besides avoiding some code duplication, as a side effect, this could remove this false positive return with spatch:
drivers/media/usb/ttusb-dec/ttusb_dec.c:380 ttusb_dec_send_command() warn: inconsistent returns '&dec->usb_mutex'. Locked on : 330 Unlocked on: 354,365,380
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
|