Staging: dwc2: Fix variable dereferenced before check
authorRashika Kheria <rashika.kheria@gmail.com>
Tue, 29 Oct 2013 22:46:55 +0000 (04:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2013 16:24:39 +0000 (09:24 -0700)
commit723a2311fa4a3cf64ee7b435ba64f797ee2a568a
treea7cf31877ccda732d36b6ec85c8959b43dad3324
parent4759e82481e155745af3f639158b1b53925cc3db
Staging: dwc2: Fix variable dereferenced before check

This patch fixes the following smatch warning in hcd_intr.c-
drivers/staging/dwc2/hcd_intr.c:1946 dwc2_hc_n_intr() warn: variable dereferenced before check 'chan' (see line 1936)

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd_intr.c