Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755964AbbLDJVn (ORCPT ); Fri, 4 Dec 2015 04:21:43 -0500 Received: from mail-am1on0124.outbound.protection.outlook.com ([157.56.112.124]:43372 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755905AbbLDJVk convert rfc822-to-8bit (ORCPT ); Fri, 4 Dec 2015 04:21:40 -0500 X-Greylist: delayed 1363 seconds by postgrey-1.27 at vger.kernel.org; Fri, 04 Dec 2015 04:21:40 EST From: "Shah, Yash (Y.)" To: "axboe@kernel.dk" CC: "linux-kernel@vger.kernel.org" , "Babu, Viswanathan (V.)" Subject: [PATCH] Staging: cdrom: fix space required after that ',' Thread-Topic: [PATCH] Staging: cdrom: fix space required after that ',' Thread-Index: AQHRLnUt6bOr/COxr06Kqf8dlVqMfg== Date: Fri, 4 Dec 2015 09:21:37 +0000 Message-ID: <20151204092130.GA6979@ubuntu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yshah1@visteon.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [74.112.164.115] x-microsoft-exchange-diagnostics: 1;DBXPR06MB493;5:93flFPNq7EnUq2odDZTiTaKQA3ZaJy5Qdr2Ww2XHhZBhu/87giCmstzD/sa9tOhlQxTV/qyJ3/m7KUwkbKmju8f+2XxgBBYmNoI/Sdo0GUdDSwnbtLE8Bzmlj3GubScQ9W7TQWg5JVyb42EJOh5k3A==;24:efrfsAdszySex8ed9B0iMWiV29FH3NKs4haPLMNZTXi3CJAHewDmmV867BXSx9JyS6aRlXKPIq3Yh/Qfac+uUWZZDoiNN9cC61eMDK3lhes= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DBXPR06MB493; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(208512329853888); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001);SRVR:DBXPR06MB493;BCL:0;PCL:0;RULEID:;SRVR:DBXPR06MB493; x-forefront-prvs: 07807C55DC x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(189002)(5002640100001)(5004730100002)(106356001)(106116001)(105586002)(97736004)(5008740100001)(10400500002)(50986999)(189998001)(54356999)(87936001)(101416001)(11100500001)(33656002)(19580405001)(107886002)(19580395003)(3846002)(66066001)(5001960100002)(4001430100002)(110136002)(586003)(102836003)(86362001)(81156007)(229853001)(33716001)(1076002)(2351001)(6116002)(1096002)(2860100001)(77096005)(40100003)(92566002)(2900100001)(1220700001)(2501003)(122556002);DIR:OUT;SFP:1102;SCL:1;SRVR:DBXPR06MB493;H:DBXPR06MB494.eurprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2015 09:21:37.5333 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR06MB493 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2485 Lines: 67 From: Yash Shah fix space required after that ',' as detected by checkpatch.pl Signed-off-by: Yash Shah --- drivers/cdrom/cdrom.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index c206ccd..2d759b6 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c @@ -536,7 +536,7 @@ static int cdrom_mrw_exit(struct cdrom_device_info *cdi) int ret; ret = cdrom_get_disc_info(cdi, &di); - if (ret < 0 || ret < (int)offsetof(typeof(di),disc_type)) + if (ret < 0 || ret < (int)offsetof(typeof(di), disc_type)) return 1; ret = 0; @@ -788,7 +788,7 @@ static int cdrom_mrw_open_write(struct cdrom_device_info *cdi) } ret = cdrom_get_disc_info(cdi, &di); - if (ret < 0 || ret < offsetof(typeof(di),disc_type)) + if (ret < 0 || ret < offsetof(typeof(di), disc_type)) return 1; if (!di.erasable) @@ -1050,7 +1050,7 @@ int open_for_data(struct cdrom_device_info *cdi) if (CDROM_CAN(CDC_CLOSE_TRAY) && cdi->options & CDO_AUTO_CLOSE) { cd_dbg(CD_OPEN, "trying to close the tray\n"); - ret=cdo->tray_move(cdi,0); + ret=cdo->tray_move(cdi, 0); if (ret) { cd_dbg(CD_OPEN, "bummer. tried to close the tray but failed.\n"); /* Ignore the error from the low @@ -1215,7 +1215,7 @@ static int check_for_audio_disc(struct cdrom_device_info * cdi, if (CDROM_CAN(CDC_CLOSE_TRAY) && cdi->options & CDO_AUTO_CLOSE) { cd_dbg(CD_OPEN, "trying to close the tray\n"); - ret=cdo->tray_move(cdi,0); + ret=cdo->tray_move(cdi, 0); if (ret) { cd_dbg(CD_OPEN, "bummer. tried to close tray but failed.\n"); /* Ignore the error from the low @@ -1591,8 +1591,8 @@ void init_cdrom_command(struct packet_command *cgc, void *buf, int len, /* DVD handling */ -#define copy_key(dest,src) memcpy((dest), (src), sizeof(dvd_key)) -#define copy_chal(dest,src) memcpy((dest), (src), sizeof(dvd_challenge)) +#define copy_key(dest, src) memcpy((dest), (src), sizeof(dvd_key)) +#define copy_chal(dest, :src) memcpy((dest), (src), sizeof(dvd_challenge)) static void setup_report_key(struct packet_command *cgc, unsigned agid, unsigned type) { -- 1.9.1 -- 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/