]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: uas: fix gcc warning
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 26 Sep 2012 08:29:03 +0000 (10:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 21:13:19 +0000 (14:13 -0700)
commite0423dee897734576cf4cc021165dd4521e9d3cc
treeccc122d0cd142c68fdaea1545ddf56b17f54ce52
parent1994ff405e9c1a8916ca41e093e786262af42b42
USB: uas: fix gcc warning

Streamline control flow so it is easier for gcc to follow which paths
can be taken and which can't.

Fixes "warning: 'cmdinfo' may be used uninitialized in this function"

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c