UPSTREAM: usb: f_mass_storage: simplify logical expression
An unsigned int is always >= 0. Change-Id: Iba5723469069b0155bcaca876071e32679a0437d Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 48cdfa2f8177dbdfc77c365c0f3f918ceadbe484)
This commit is contained in:
parent
dd2dbc2675
commit
75b27a42f1
|
|
@ -1749,7 +1749,7 @@ static int check_command(struct fsg_common *common, int cmnd_size,
|
|||
common->lun, lun);
|
||||
|
||||
/* Check the LUN */
|
||||
if (common->lun >= 0 && common->lun < common->nluns) {
|
||||
if (common->lun < common->nluns) {
|
||||
curlun = &common->luns[common->lun];
|
||||
if (common->cmnd[0] != SC_REQUEST_SENSE) {
|
||||
curlun->sense_data = SS_NO_SENSE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue