Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fddc26f5 authored by Tal Shorer's avatar Tal Shorer Committed by Felipe Balbi
Browse files

usb: gadget: f_mass_storage: use defined constant instead of numeric value



replace numeric value with TYPE_NO_LUN (defined in <scsi/scsi.h>)

Signed-off-by: default avatarTal Shorer <tal.shorer@gmail.com>
Acked-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 06ed0de5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1085,7 +1085,7 @@ static int do_inquiry(struct fsg_common *common, struct fsg_buffhd *bh)
	if (!curlun) {		/* Unsupported LUNs are okay */
		common->bad_lun_okay = 1;
		memset(buf, 0, 36);
		buf[0] = 0x7f;		/* Unsupported, no device-type */
		buf[0] = TYPE_NO_LUN;	/* Unsupported, no device-type */
		buf[4] = 31;		/* Additional length */
		return 36;
	}