Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp464759yba; Thu, 16 May 2019 03:59:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5sbWtDRhbBXwLduQll6k5MvtZnM/ZMMpnFQTDReRyADTOZ9+pYbMPo7LNC74PdrC9/naN X-Received: by 2002:a62:38d3:: with SMTP id f202mr8244874pfa.41.1558004360055; Thu, 16 May 2019 03:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558004360; cv=none; d=google.com; s=arc-20160816; b=0N5RNA13FS90pfDBT5JAaBtU9MKs+Apr6O7WBWBrmx+uyA9n4yDRxvNtXinoMMz7RK AgPfWGjuIR/sXFXfdsSIwxhi8/SpYB57zpOD3/fMiVKQQ+gvs3JveYYZz+QU9ffvvpTL 9KCFU/aPui6R9G/8kttIPsIwmBDvS90xqR+T1nMgBfbki+ibQKgbFaMaEHqY63cJMGF5 k4jB5NaXJm1qsqdhgiBSaugqN1m/97j1uEkhXInrNw54xQu3GnrX1efTiUiHHu7smQom 307UowdDLkvqet8RZeqmUjDWa8bOOUTU8MWmu+xJ5awL7ntWg3AD/EXlwjKcvtEifz/k rWRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=9qccUdhnmdBW4Z5bLa6fiQHLDIDBOpy8mTBQcMI+QQE=; b=SkBASTMu9UdRXH2libEC25wbwj9UR+IP5OxPC6zDll/PuIbGJIdT09biV4K/QeowQ0 9c2Bd/Qxigs2IKgnxkKf+tQRJn5DcLYi8J+WEnSh0JZN8PiaBVYP2WQSb8nDbnsJhG1O 2Efyks8Cj+XPMS3XtlNfUd49xymszGXvbGkd/iwwujGVOrHhkzBdqhcRIDMSpHOLNGSs qyYbgdVEG1X4/aOD4jxj0IUYG79/YMcMI6YtvG4kuZEsc/LpdxDIBFV3yspMWqStDCCK aJaZ4mz7ur+/xO07g7PPm8F5bmjcg4RbB80lpS2Arjx0SBmmHfEsYyptv0PN6b2H7r/J +hNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@itdevltd.onmicrosoft.com header.s=selector1-itdevltd-onmicrosoft-com header.b=gdfuCTGa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i195si5586494pfe.20.2019.05.16.03.58.56; Thu, 16 May 2019 03:59:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@itdevltd.onmicrosoft.com header.s=selector1-itdevltd-onmicrosoft-com header.b=gdfuCTGa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726977AbfEPK1k (ORCPT + 99 others); Thu, 16 May 2019 06:27:40 -0400 Received: from mail-eopbgr150043.outbound.protection.outlook.com ([40.107.15.43]:38222 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726597AbfEPK1k (ORCPT ); Thu, 16 May 2019 06:27:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itdevltd.onmicrosoft.com; s=selector1-itdevltd-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9qccUdhnmdBW4Z5bLa6fiQHLDIDBOpy8mTBQcMI+QQE=; b=gdfuCTGaAtocOdTrOu05p3dhN60+WOVNulIWjU2xko474zven5m7pnV9tOKbAdHadi0QvGzyjyRMm0kW+461kS91MUzBH9qbjioFb3yWL4lNnHAOQ94xKa6GHVG8+Gp/sDyItLCC+bAr2muC8lzdwqoK2dXOy8yXVaf7BtTPnmE= Received: from VI1PR08MB3168.eurprd08.prod.outlook.com (52.133.15.143) by VI1SPR01MB333.eurprd08.prod.outlook.com (52.134.27.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.16; Thu, 16 May 2019 10:27:31 +0000 Received: from VI1PR08MB3168.eurprd08.prod.outlook.com ([fe80::8e9:9487:4f0a:fdaf]) by VI1PR08MB3168.eurprd08.prod.outlook.com ([fe80::8e9:9487:4f0a:fdaf%3]) with mapi id 15.20.1878.024; Thu, 16 May 2019 10:27:31 +0000 From: Quentin Deslandes To: Greg Kroah-Hartman CC: "kernel-janitors@vger.kernel.org" , "devel@driverdev.osuosl.org" , Forest Bond , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] staging: vt6656: remove unused variable Thread-Topic: [PATCH] staging: vt6656: remove unused variable Thread-Index: AQHVC8oVWbJV7t4C7kCfosLx3wTTvKZtfwmAgAATxID///dsgIAAAh4A Date: Thu, 16 May 2019 10:27:31 +0000 Message-ID: <20190516102728.GA3884@qd-ubuntu> References: <20190516093046.1400-1-quentin.deslandes@itdev.co.uk> <20190516093951.GA19798@kroah.com> <20190516095035.GA1692@qd-ubuntu> <20190516101953.GA22358@kroah.com> In-Reply-To: <20190516101953.GA22358@kroah.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6PR07CA0029.eurprd07.prod.outlook.com (2603:10a6:209:2a::42) To VI1PR08MB3168.eurprd08.prod.outlook.com (2603:10a6:803:47::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=quentin.deslandes@itdev.co.uk; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [89.21.227.133] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 99a5144d-e94c-45f8-091e-08d6d9e91a41 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:VI1SPR01MB333; x-ms-traffictypediagnostic: VI1SPR01MB333: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0039C6E5C5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(7916004)(346002)(376002)(39830400003)(366004)(396003)(136003)(51444003)(199004)(189003)(40764003)(316002)(2906002)(7736002)(11346002)(305945005)(68736007)(486006)(508600001)(476003)(66066001)(229853002)(446003)(26005)(186003)(6246003)(8676002)(14454004)(76176011)(33716001)(386003)(6506007)(9686003)(6512007)(99286004)(54906003)(52116002)(66476007)(66556008)(64756008)(66446008)(73956011)(66946007)(102836004)(53936002)(25786009)(1076003)(6486002)(71200400001)(6116002)(6436002)(4326008)(71190400001)(81166006)(256004)(3846002)(8936002)(14444005)(86362001)(33656002)(6916009)(81156014)(5660300002)(74482002)(44832011)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1SPR01MB333;H:VI1PR08MB3168.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: itdev.co.uk does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Ke87eIHk4wZ3WPMx+GhB1r/k3bCntXfvTky13ab/xGDtW/w0nz+8VjW5+zqiYSGgC9JiXvIuhS9+fcM5krWOad4XhlSayF67wslEub9ivsEn/2Tj8OKMt8Qjok+Jz0dlSEMhqdcCfldIEHtnBhJRL1nXaBaqbAmzYXIYiX9OVyfzm+PHo6rwQL6i2Dz8RdCgTLfZgdMrOoceXRsiIsX29Pc6UhV/VArxWhRi2Jn2HiLihIAeVn+uEwwTNA0fTLdL6jGPeYcB+DZ5VDQUl0zwu/7H7W0Xsf0HTC5VzscLvpznkEQ/fayGqB18uA198L0sWy/aIPM81n3+ZXJbNPU56vGv5XDVpCg9PgBnH9u7uE0ZYNi2wdOAsu5fL1zz/FE3kybHPTZ83MYyS/jjV17OCaDdQZ5eESVKpaHndZ2g2BU= Content-Type: text/plain; charset="us-ascii" Content-ID: <5AD57285E719E34DACF59958AD5054C9@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: itdev.co.uk X-MS-Exchange-CrossTenant-Network-Message-Id: 99a5144d-e94c-45f8-091e-08d6d9e91a41 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 May 2019 10:27:31.3463 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 2d2930c4-2251-45b4-ad79-3582c5f41740 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1SPR01MB333 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 16, 2019 at 12:19:53PM +0200, Greg Kroah-Hartman wrote: > On Thu, May 16, 2019 at 09:50:38AM +0000, Quentin Deslandes wrote: > > On Thu, May 16, 2019 at 11:39:51AM +0200, Greg Kroah-Hartman wrote: > > > On Thu, May 16, 2019 at 09:31:05AM +0000, Quentin Deslandes wrote: > > > > Fixed 'set but not used' warning message on a status variable. The > > > > called function returning the status code 'vnt_start_interrupt_urb(= )' > > > > clean up after itself and the caller function > > > > 'vnt_int_start_interrupt()' does not returns any value. > > > >=20 > > > > Signed-off-by: Quentin Deslandes > > > > --- > > > > drivers/staging/vt6656/int.c | 3 +-- > > > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > >=20 > > > > diff --git a/drivers/staging/vt6656/int.c b/drivers/staging/vt6656/= int.c > > > > index 504424b19fcf..ac30ce72db5a 100644 > > > > --- a/drivers/staging/vt6656/int.c > > > > +++ b/drivers/staging/vt6656/int.c > > > > @@ -42,13 +42,12 @@ static const u8 fallback_rate1[5][5] =3D { > > > > void vnt_int_start_interrupt(struct vnt_private *priv) > > > > { > > > > unsigned long flags; > > > > - int status; > > > > =20 > > > > dev_dbg(&priv->usb->dev, "---->Interrupt Polling Thread\n"); > > > > =20 > > > > spin_lock_irqsave(&priv->lock, flags); > > > > =20 > > > > - status =3D vnt_start_interrupt_urb(priv); > > > > + vnt_start_interrupt_urb(priv); > > >=20 > > > Shouldn't you fix this by erroring out if this fails? Why ignore the > > > errors? > > >=20 > > > thanks, > > >=20 > > > greg k-h > >=20 > > I could, however 'vnt_start_interrupt_urb()' already call 'dev_dbg()' i= f > > it fails. Nothing is done after this debug call except returning an > > error code. >=20 > Returning an error code is fine for that function. But then you have to > do something with that error. >=20 > > 'vnt_int_start_interrupt()' should, IMHO, return a status code, but the > > original developer may have good reasons not to do so. >=20 > I think that is the real problem that needs to be fixed here, don't > paper over the issue by ignoring the return value. >=20 > thanks, >=20 > greg k-h Thus I'll return an error value to handle this in the caller function and then send a v2. Thank you for your help, Quentin