Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754192AbbBZSm7 (ORCPT ); Thu, 26 Feb 2015 13:42:59 -0500 Received: from mail-we0-f179.google.com ([74.125.82.179]:34359 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752991AbbBZSm5 (ORCPT ); Thu, 26 Feb 2015 13:42:57 -0500 From: Tal Shorer To: linux-usb@vger.kernel.org Cc: balbi@ti.com, gregkh@linuxfoundation.org, mina86@mina86.com, tal.shorer@gmail.com, andrzej.p@samsung.com, linux-kernel@vger.kernel.org Subject: [PATCH] usb: gadget: f_mass_storage: use defined constant instead of numeric value Date: Thu, 26 Feb 2015 20:42:50 +0200 Message-Id: <1424976170-2361-1-git-send-email-tal.shorer@gmail.com> X-Mailer: git-send-email 2.2.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1014 Lines: 26 Signed-off-by: Tal Shorer --- drivers/usb/gadget/function/f_mass_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c index 811929c..6d5ca2b 100644 --- a/drivers/usb/gadget/function/f_mass_storage.c +++ b/drivers/usb/gadget/function/f_mass_storage.c @@ -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; } -- 2.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/