staging: most: usb: don't use expressions that might fail in a declaration
authorChristian Gromm <christian.gromm@microchip.com>
Wed, 27 May 2020 09:06:19 +0000 (11:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 10:24:45 +0000 (12:24 +0200)
commita0dbe1b24c9b66102243ba8b49783f960edc8663
tree6ac661c97271b75b6d68feacde676a7c927f5419
parent1c538a417977ec102d47297e8c0f4619100f42c2
staging: most: usb: don't use expressions that might fail in a declaration

This patch moves function calls that can fail out of the declararion block
of a function body. This is done to enhance readability.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1590570387-27069-3-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/usb/usb.c