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:
Heinrich Schuchardt 2018-03-18 13:12:14 +01:00 committed by Frank Wang
parent dd2dbc2675
commit 75b27a42f1
1 changed files with 1 additions and 1 deletions

View File

@ -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;