From patchwork Wed Oct 7 03:35:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Laszczak X-Patchwork-Id: 11819705 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CD240618 for ; Wed, 7 Oct 2020 03:37:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 88F55208C7 for ; Wed, 7 Oct 2020 03:37:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cadence.com header.i=@cadence.com header.b="smYPOubL"; dkim=pass (1024-bit key) header.d=cadence.com header.i=@cadence.com header.b="y1lGj4bs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726760AbgJGDhU (ORCPT ); Tue, 6 Oct 2020 23:37:20 -0400 Received: from mx0b-0014ca01.pphosted.com ([208.86.201.193]:11688 "EHLO mx0a-0014ca01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725981AbgJGDhU (ORCPT ); Tue, 6 Oct 2020 23:37:20 -0400 Received: from pps.filterd (m0042333.ppops.net [127.0.0.1]) by mx0b-0014ca01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0973PO8B008596; Tue, 6 Oct 2020 20:37:12 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=proofpoint; bh=1ITdd9asQb8TjqHkOHTAFsIRRiv1VFYllpn6d4xD5Bg=; b=smYPOubLMDkA8LXF51XtUmK2XDeKYd+4V21/1zu9VYzd5SkQ8AVnaqa/lbPmKJ2osTET PSfFvGGK2lK5jWN838XUtQu2VQwvPrrLCEDgrJT3lBCLZ/6x1Dp7jEcSobdPmWpQaN+J 6XJqzGck+DuqyNBkHYQlnciuJKucRoBlNSjjM4T3j2nskP2VWoWPr4IpVexaj1FFOgTm R42P2XIxWLcf3ce+Qh1LHEqqbMOMF2YNrX84YNGRL8Pda2awybbCuIUdIkcSfFlojj90 i7sXtTP0Ddpl8rulAlVVD5so6S1eO9q35k31UINETlF90DZsJXznK601Y8xPalYnDhRF cA== Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2103.outbound.protection.outlook.com [104.47.58.103]) by mx0b-0014ca01.pphosted.com with ESMTP id 33xmvyc3gp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Oct 2020 20:37:12 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ENak/iNpHmstVxGy6zVJT4IgfFOv83vH6KqqUXskU71pCBUHCbZgaLu9iMkygD5o/MtYU1WUTolRbz+8YJ6P9pN93/ne5D/7LnQT/lEuaGJhWxcq7hEKB8C1/8ds6d9fCLx5dhnmQaUJ6pziA8WusX5u7kVzhwFaYc54WwC4t1Ty6uFtYPjd5hMDAnPL2xg+bZenw4cvhD3Wzm+Dea45vLZ638lAeKlQY3U3w9x2Xr2MNH9pDai0O9iao/+n2ydz6HCwnk5kCTmcXHHTFUD3Jw20+ok1/3G4dE2DEvewlcPkxNo7v2R6+b+AXKNA3V8Moc7DRMe/V17U1U2po4ylaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1ITdd9asQb8TjqHkOHTAFsIRRiv1VFYllpn6d4xD5Bg=; b=cJoeI9M8vigtNxBS+pSMW/xNMv0nm4pY3jB81nTEVgx534Q+jRCD6pjXzVxOTseXyiQNVhqajKq2Ke9iDQQ+t8IUx14LqHYChurNA2b376FFojApyWEH6x7bdcvm9FhxNW/6KZgq5wyGqNvAMGynEzsjGLyWxLnCgFz1R8s3VXkdT87iVXVwYDYwPlzYRQ3VoWOCSm2kLZRgwlPTjJJyOlJ0DmkwbzQ1lMp6djZ5qoaQo2NlJIjjLNFvfC02l0GXmQ3he35KgsbEOYVskKT2sgrHeRS+U1P5hQyPFK0Z4VgFKSh4KQO8+72SGH/msn6AwxHRf+ckrxOHlQBE85IjkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 158.140.1.147) smtp.rcpttodomain=ti.com smtp.mailfrom=cadence.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=cadence.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1ITdd9asQb8TjqHkOHTAFsIRRiv1VFYllpn6d4xD5Bg=; b=y1lGj4bsRUWdf3CKkfeI/SF2GQBLx15jgXBwNBPd6iyfPC/tGzDrxd0dxZjnZC2mtx3Hdx3Dpm8KVSMOcI7wtTVW6VbrC6fr2XKGyCUWtBVuV1tHY5yJf/R122XKfKNJBt0CVaFzxT2qAF+PAl3GwMATQ3VrySxDO2M/gmzUwVE= Received: from MWHPR21CA0030.namprd21.prod.outlook.com (2603:10b6:300:129::16) by DM6PR07MB5307.namprd07.prod.outlook.com (2603:10b6:5:48::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Wed, 7 Oct 2020 03:37:11 +0000 Received: from MW2NAM12FT039.eop-nam12.prod.protection.outlook.com (2603:10b6:300:129:cafe::23) by MWHPR21CA0030.outlook.office365.com (2603:10b6:300:129::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.6 via Frontend Transport; Wed, 7 Oct 2020 03:37:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 158.140.1.147) smtp.mailfrom=cadence.com; ti.com; dkim=none (message not signed) header.d=none;ti.com; dmarc=pass action=none header.from=cadence.com; Received-SPF: Pass (protection.outlook.com: domain of cadence.com designates 158.140.1.147 as permitted sender) receiver=protection.outlook.com; client-ip=158.140.1.147; helo=sjmaillnx1.cadence.com; Received: from sjmaillnx1.cadence.com (158.140.1.147) by MW2NAM12FT039.mail.protection.outlook.com (10.13.181.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.13 via Frontend Transport; Wed, 7 Oct 2020 03:37:10 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by sjmaillnx1.cadence.com (8.14.4/8.14.4) with ESMTP id 0973bAEV031154 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Tue, 6 Oct 2020 20:37:12 -0700 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 7 Oct 2020 05:37:05 +0200 Received: from vleu-orange.cadence.com (10.160.88.83) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 7 Oct 2020 05:37:05 +0200 Received: from vleu-orange.cadence.com (localhost.localdomain [127.0.0.1]) by vleu-orange.cadence.com (8.14.4/8.14.4) with ESMTP id 0973b6AH022913; Wed, 7 Oct 2020 05:37:06 +0200 Received: (from pawell@localhost) by vleu-orange.cadence.com (8.14.4/8.14.4/Submit) id 0973b5cp022912; Wed, 7 Oct 2020 05:37:05 +0200 From: Pawel Laszczak To: CC: , , , , , , Pawel Laszczak Subject: [PATCH 1/2] usb: cdns3: Rids of duplicate error message Date: Wed, 7 Oct 2020 05:35:31 +0200 Message-ID: <20201007033531.22526-1-pawell@cadence.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5da315c6-d27d-42ff-f373-08d86a724600 X-MS-TrafficTypeDiagnostic: DM6PR07MB5307: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:972; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MVuyd5uEOZ8G41bs6mDNb3g5J4baIPPM91ZJy+A8ZJ3yIs6go42OhRCjZrO4Y/ME9yULg60dDT0Tv3H/s8+LMVpllEhkAaqueUFfqBidX30HCXuyYul2sbF6NVaFl6UcL1xFeawfaR5Zyv5jA3N42cfcyvhBPFDJyVpYzkEunMc+Fv5aBJmgwGKKyxJ0SoOZIrxrcf2zTDYyjRIQH1MyCUT4tdsGj8el0MQALdgnEA0OMRU42ozdYdjp4baEkI9NyLCLct2yolj6U40fitlWtr+mxaq4QeTsUM92Fw/GwBThONs1NqRPRv3pZrZ7Uisi+YUrWIhBPGX5ckfR1HUvHbq7DDQsByhjj4XbtvXG069if8FyTJfGSdHRkoU2JNQq7v9C9xg056oOaqz48IRlriVdTJvpnCL5146cv6/bMYY= X-Forefront-Antispam-Report: CIP:158.140.1.147;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:sjmaillnx1.cadence.com;PTR:unknown.Cadence.COM;CAT:NONE;SFS:(4636009)(136003)(346002)(39860400002)(396003)(376002)(36092001)(46966005)(7636003)(2906002)(70206006)(107886003)(26005)(8676002)(83380400001)(36756003)(336012)(186003)(5660300002)(1076003)(6666004)(8936002)(47076004)(6916009)(86362001)(70586007)(316002)(36906005)(82740400003)(478600001)(42186006)(82310400003)(54906003)(426003)(15650500001)(2616005)(4326008)(356005);DIR:OUT;SFP:1101; X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2020 03:37:10.5439 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5da315c6-d27d-42ff-f373-08d86a724600 X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9;Ip=[158.140.1.147];Helo=[sjmaillnx1.cadence.com] X-MS-Exchange-CrossTenant-AuthSource: MW2NAM12FT039.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB5307 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-10-07_03:2020-10-06,2020-10-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 impostorscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 phishscore=0 spamscore=0 bulkscore=0 suspectscore=1 adultscore=0 mlxlogscore=700 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010070022 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On failure, the platform_get_irq_byname prints an error message so, patch removes error message related to this function from core.c file. A change was suggested during reviewing CDNSP driver by Chunfeng Yun. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/core.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index a0f73d4711ae..4fd3c742d9d5 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -469,9 +469,6 @@ static int cdns3_probe(struct platform_device *pdev) if (cdns->dev_irq == -EPROBE_DEFER) return cdns->dev_irq; - if (cdns->dev_irq < 0) - dev_err(dev, "couldn't get peripheral irq\n"); - regs = devm_platform_ioremap_resource_byname(pdev, "dev"); if (IS_ERR(regs)) return PTR_ERR(regs); @@ -481,10 +478,8 @@ static int cdns3_probe(struct platform_device *pdev) if (cdns->otg_irq == -EPROBE_DEFER) return cdns->otg_irq; - if (cdns->otg_irq < 0) { - dev_err(dev, "couldn't get otg irq\n"); + if (cdns->otg_irq < 0) return cdns->otg_irq; - } res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "otg"); if (!res) { From patchwork Wed Oct 7 03:39:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Laszczak X-Patchwork-Id: 11819709 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7E634618 for ; Wed, 7 Oct 2020 03:41:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 410B7208C3 for ; Wed, 7 Oct 2020 03:41:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cadence.com header.i=@cadence.com header.b="q+mE9KN5"; dkim=pass (1024-bit key) header.d=cadence.com header.i=@cadence.com header.b="63oaIoEN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726638AbgJGDlN (ORCPT ); Tue, 6 Oct 2020 23:41:13 -0400 Received: from mx0a-0014ca01.pphosted.com ([208.84.65.235]:8134 "EHLO mx0a-0014ca01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbgJGDlN (ORCPT ); Tue, 6 Oct 2020 23:41:13 -0400 Received: from pps.filterd (m0042385.ppops.net [127.0.0.1]) by mx0a-0014ca01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0973RGgR024752; Tue, 6 Oct 2020 20:41:05 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding; s=proofpoint; bh=TwXR40QDTd2h7f/veXUUEZREyv4ylgqGQOqD3DmmmUo=; b=q+mE9KN55nvJE2Di4OIvbK+kYNiXaRvp5Vi5axYlNsMepab7msIzphMps2glKIEc7usj 8OrubmiFVKEzAzlr06btg5P4I78LYN8j8xp+9cjY1jXlI1tOcQfmowDbXZSlo+jusg+4 saTkx7YFkM1iGvYgZygx4CFgOXXL9lA+KaxD+uitYeUoBWMO0ePAE0BUYhNxsTWCamKe DbWlc1vLk3X2u0QUl6/WLIAE6NuHYc5RDEwgOGGJdyw/6B5RuwdXkW5EU3p6H1tPEeCn 2jKqwmzDVyN519+D4pU1o+UcGqD9meliQ15gOdkLzXLAeL4Wzcsy9yGhdrkXMWWr8zC1 1w== Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by mx0a-0014ca01.pphosted.com with ESMTP id 33xnuxkt53-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Oct 2020 20:41:05 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZSbXgPe0HrWX/keQTpAROFYU7C/MugRNHmfU9VMLKCvXJ817FKWk/aIJ8wRzUDfu1qtp5wbqLJZR9BKQMtkYC3id429lghp9IpAvikptzaHKTAnnBMHdzmkX3nj2i58plF25txg8bjexI8Sj4cRqAVolMd9EAKXaPHwSd2k3pAvGgF2Jdu3aSb1lZiEPRYLb4I7U6muKN0r+ij56gBdwCNS1yAAoleMPSBrHOk+iNIxtOuPvclgcZBxSXnMATM3wG5J9SfXO4s5FIZ6hzvPWhcsBgEnA3xsQ5J+oKMrIIsEIEjCB0MNjGrzzORzrUSBX5fZUISm8NYIqKFKRM7Uqgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TwXR40QDTd2h7f/veXUUEZREyv4ylgqGQOqD3DmmmUo=; b=RoN/hLmzp0V3iH7nXQuN5ps8nXLK32kBO9MnkGoI1sFcr8nQrdve20KPB3tfV86kfwmum9vBKa/1sIGVWYvO1495Ka39InZ6cQc1pD58dJlpA2hKN62MEyog0XwqxbIZFpnAkEzXwgCaR4j2a+ZH15PJxHHFHHYG4dQ1qYOnv+tid8U05qjCknLMPlBk8d7jr/IbnD+z2vA4TAknVwBtpJSZSn2VYlnp/SwqeneWbiBau4XPBiQJ6DPLG6Nw0dEAVqyoQMqIwu3vDe5/xRG2jWPQ3Ro57+Q0rqvP4catsLf/XN4oxoDeNue4uX+0EWiQsjeLeN/kIuB9RHZvMw9VPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 158.140.1.148) smtp.rcpttodomain=ti.com smtp.mailfrom=cadence.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=cadence.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TwXR40QDTd2h7f/veXUUEZREyv4ylgqGQOqD3DmmmUo=; b=63oaIoENRFX5v00A3ly3f5dARZALkrgG13u+0zkILXiBQyWPX7sBYSx8CuK6lS+B6w+jBZJ/aARF5uWhLWje+l+7Ymynl35EkTgWRF1PKIyVigxW1ViI8/EpIrYZM+81dPOHe3aoCF2RbgxjfWk8j1rl12dqVrsL9yIDB+KYvCU= Received: from BN3PR05CA0003.namprd05.prod.outlook.com (2603:10b6:400::13) by MW2PR07MB7897.namprd07.prod.outlook.com (2603:10b6:302:6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.35; Wed, 7 Oct 2020 03:41:00 +0000 Received: from BN8NAM12FT054.eop-nam12.prod.protection.outlook.com (2603:10b6:400:0:cafe::c4) by BN3PR05CA0003.outlook.office365.com (2603:10b6:400::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.15 via Frontend Transport; Wed, 7 Oct 2020 03:40:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 158.140.1.148) smtp.mailfrom=cadence.com; ti.com; dkim=none (message not signed) header.d=none;ti.com; dmarc=pass action=none header.from=cadence.com; Received-SPF: Pass (protection.outlook.com: domain of cadence.com designates 158.140.1.148 as permitted sender) receiver=protection.outlook.com; client-ip=158.140.1.148; helo=sjmaillnx2.cadence.com; Received: from sjmaillnx2.cadence.com (158.140.1.148) by BN8NAM12FT054.mail.protection.outlook.com (10.13.183.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.13 via Frontend Transport; Wed, 7 Oct 2020 03:40:59 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by sjmaillnx2.cadence.com (8.14.4/8.14.4) with ESMTP id 0973ewvF002155 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Tue, 6 Oct 2020 20:40:59 -0700 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 7 Oct 2020 05:40:56 +0200 Received: from vleu-orange.cadence.com (10.160.88.83) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 7 Oct 2020 05:40:56 +0200 Received: from vleu-orange.cadence.com (localhost.localdomain [127.0.0.1]) by vleu-orange.cadence.com (8.14.4/8.14.4) with ESMTP id 0973euSD023135; Wed, 7 Oct 2020 05:40:56 +0200 Received: (from pawell@localhost) by vleu-orange.cadence.com (8.14.4/8.14.4/Submit) id 0973euAP023134; Wed, 7 Oct 2020 05:40:56 +0200 From: Pawel Laszczak To: CC: , , , , , , , Pawel Laszczak Subject: [PATCH 2/2] =?utf-8?q?usb=3A_cdns3=3A_Variable_=E2=80=98length?= =?utf-8?q?=E2=80=99_set_but_not_used?= Date: Wed, 7 Oct 2020 05:39:32 +0200 Message-ID: <20201007033932.23050-1-pawell@cadence.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 378b6b33-88f4-49ae-0aa5-08d86a72ce97 X-MS-TrafficTypeDiagnostic: MW2PR07MB7897: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:632; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m7CVikTv2MbVf4XcKz4QCXDkjKLiS1SR5R9bDe74K67dWNFgGhd0xKWqypRfT/TnO/uIjWTx9epyNU8HrGVxqQq2gibQ4bLJof6R0uscNtirSdxpju6UH0WAOUbvFDb0/rUhdepJEXK/mlYXxvPv1iKcsjQk3cFD1VHXgTAXvLvP0lAp54gONfsx8KxmE6xkeqA6F49Hc4uCD8xYYDCCSwv5ELPoLXR0VJhdKS5ZKKeYqZDxdqSgCiieW6wL3Fn61/7KkIFmmiLlRZLtPSyIRwGB+J1HwcDF5WW8cJvCimKJBvMjehxvLIiqEA9l/WUNJDmqSvGZcy6sxcm4jrWXUP+xkIJsAv+MyGPMBvhJSL5d1pn7YFQiVFlFhByoP0UApA1D6cnMh0DMQ6j2wcei01p4Hff2M9FueZdRZB2myAU= X-Forefront-Antispam-Report: CIP:158.140.1.148;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:sjmaillnx2.cadence.com;PTR:unknown.Cadence.COM;CAT:NONE;SFS:(4636009)(39860400002)(136003)(376002)(396003)(346002)(36092001)(46966005)(4744005)(2616005)(356005)(4326008)(186003)(336012)(6666004)(70206006)(36906005)(54906003)(70586007)(6916009)(1076003)(42186006)(7636003)(478600001)(316002)(5660300002)(83380400001)(426003)(82740400003)(8936002)(26005)(47076004)(82310400003)(2906002)(36756003)(86362001)(107886003);DIR:OUT;SFP:1101; X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2020 03:40:59.6387 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 378b6b33-88f4-49ae-0aa5-08d86a72ce97 X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9;Ip=[158.140.1.148];Helo=[sjmaillnx2.cadence.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM12FT054.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR07MB7897 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-10-07_03:2020-10-06,2020-10-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 malwarescore=0 mlxscore=0 mlxlogscore=685 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1015 adultscore=0 suspectscore=1 impostorscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010070022 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Patch removes not used variable 'length' from cdns3_wa2_descmiss_copy_data function. Signed-off-by: Pawel Laszczak Acked-by: Roger Quadros --- drivers/usb/cdns3/gadget.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c index 6e7b70a2e352..692acf7b9b14 100644 --- a/drivers/usb/cdns3/gadget.c +++ b/drivers/usb/cdns3/gadget.c @@ -506,7 +506,6 @@ static void cdns3_wa2_descmiss_copy_data(struct cdns3_endpoint *priv_ep, while (!list_empty(&priv_ep->wa2_descmiss_req_list)) { int chunk_end; - int length; descmiss_priv_req = cdns3_next_priv_request(&priv_ep->wa2_descmiss_req_list); @@ -517,7 +516,6 @@ static void cdns3_wa2_descmiss_copy_data(struct cdns3_endpoint *priv_ep, break; chunk_end = descmiss_priv_req->flags & REQUEST_INTERNAL_CH; - length = request->actual + descmiss_req->actual; request->status = descmiss_req->status; __cdns3_descmiss_copy_data(request, descmiss_req); list_del_init(&descmiss_priv_req->list);