Message ID | 20211217070735.GC26548@kili (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24F76C433F5 for <linux-mediatek@archiver.kernel.org>; Fri, 17 Dec 2021 07:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/52Mahloo7aHotOb+f/7PLNvQqjNq3O+j8wuWVy6IpA=; b=rBPwms/dRRt+Vc rkfC0WXHQukhsvA1cy/kyQBtFYy0WOYFGjY6q3GIl/ONf7/gaeyx9avGG9eDSULzH0/UqPQrP8XAs 0A96N2jM0IBhlcJt+NnunRn5g+8IlZ9DJ8XeQLUo/iDU+mFPtb80Q3lE0pfqfjzeNc83eynRaCcYe 95FV3yANN0K4Gl2NkJiK+jAdWKPSd29aTARUrTJm7fNhfzqmFfY8Ebj2ULQ0m0bpHhm6fMGcZBKuQ Q0zNH+maV0tXTPD6dBwjf6JVJ6GvE/PlXZa9qIErWF8pGIh4Y/yEPH9e6jnZbkUi7EHQZRkQ1U4Sf cJ9wbb0V8xHM0QRWHN/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1my7Lc-008p9v-Gm; Fri, 17 Dec 2021 07:08:08 +0000 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1my7La-008p9U-RH for linux-mediatek@lists.infradead.org; Fri, 17 Dec 2021 07:08:08 +0000 Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1BH2oM8W012922; Fri, 17 Dec 2021 07:08:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : content-type : mime-version; s=corp-2021-07-09; bh=JHkz229itE7g5GwVcQ8KWWS9WaAWiyorqc28FYRQ0jI=; b=TxgX3Lg+1F2/9Efq7KjX1/bJVNWB+tMhULWlQP9EyePyGbPpf/pNUcTI/eJBfWfVT6aQ YIXbvUs0/apQEPg4Aa0BjYbX6zOYVcx+tP10uX7Wwejd7ElzRLfTFBZKpMyfXcIqCIDn 0L2TOBB4CeOcozsSBL1QQKdi/rWphQifxHEpsOCukfg2W+uWqyltC5nMTRwsVTpCgrQs 3iNd9LkePo9nEBkAJcdIl+pUpcLUPzEMAwDuac0Dlh2qAxteN/VepSwGHMUjIcODovE5 HKA9UFfSoJ4RyNt3HV8gST+qHLu27OWvzPK9Qwd0LDodqbvxNeQyJmQ2cvsensBPl4Dk sg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3cyknrmv6k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Dec 2021 07:08:00 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1BH75t8J122130; Fri, 17 Dec 2021 07:07:51 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2171.outbound.protection.outlook.com [104.47.59.171]) by userp3020.oracle.com with ESMTP id 3cvnev56jh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Dec 2021 07:07:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nzr7kfMUYo6jDFWJvJ3HdghSgO7/ms/uHH9C6zprL4Y8U1QEtJC/i2t2F4gM1QNxlxZXAOw3M/XIDcpR+pPmQXXLWam9AWDU4FL6JR0vQ+EV8j1uCxppebhBeJIvbR9RiXAoXqERgsIJa6lN5fPHln83svlxcc20tB9e4s/1YwoW0gABAKmnc0gPkt5amrYGBT5Lo/eUzRwTBD6C2gAvti0iqI86ryLbL8kKKTFSYGzpfan4hrX6UM3BvectqLLo+VcjKUWVquHRsPuDU5OrTii2Uit/PvUYlQMSk4aDVrK3zorAUp8IXg390evU47rWiSaBs1aPj3VjvkiIpj59TQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JHkz229itE7g5GwVcQ8KWWS9WaAWiyorqc28FYRQ0jI=; b=fDDItrREWfAisx9iMEq39XS4D+zGs8AfQkYxeGnXr4Spv398ffRpqLMfkYh2MK3zDafqyVSEyKYlcfo42fsOxE6Jv0oEcaegfIVIU0WMe13BZTz9t1Re/23l/wDaLYOLuPDE6THS3V4jIQeZ29cKVuoKdhfkUO4ESYYJULLnhaBlpZ0Ax2MmjLN4hmBk4ua/bppDRzObL4pzKtE5OUb+ecgf1himpfg3nr5PFUX5xPT/Bxf9NcSvnF1Mg1rFHEaxYVbm6VMU5DVEGgaJmyrEIIQ+XXgG3vA6FYoAGCKC5Fko1x9xxVHC5urHzSROcHFi3/2KZsasQMMcOkpEFcsFNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JHkz229itE7g5GwVcQ8KWWS9WaAWiyorqc28FYRQ0jI=; b=iY/uIeB6GREBxuwNRvxuZlrfZGF5cjnhrPS2SAQ5lcNpp/ODxvIMZsVx9ovUe2CNVtiYrf/L8rDSx/uhwiFzLdZSVc20mhwgvfIDaKUl8kJkb9+Mj5Hx1qiQPMRwH+24I8fsanCLhydMKv0r+tpaNjVMopWP443Boj4nvwucjVs= Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by MWHPR1001MB2367.namprd10.prod.outlook.com (2603:10b6:301:30::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.14; Fri, 17 Dec 2021 07:07:49 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::7194:c377:36cc:d9f0]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::7194:c377:36cc:d9f0%6]) with mapi id 15.20.4801.016; Fri, 17 Dec 2021 07:07:49 +0000 Date: Fri, 17 Dec 2021 10:07:35 +0300 From: Dan Carpenter <dan.carpenter@oracle.com> To: Felix Fietkau <nbd@nbd.name>, =?iso-8859-1?q?Ren=E9?= van Dorst <opensource@vdorst.com> Cc: John Crispin <john@phrozen.org>, Sean Wang <sean.wang@mediatek.com>, Mark Lee <Mark-MC.Lee@mediatek.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, kernel-janitors@vger.kernel.org Subject: [PATCH net-next] net: mtk_eth_soc: delete an unneeded variable Message-ID: <20211217070735.GC26548@kili> Content-Disposition: inline X-Mailer: git-send-email haha only kidding User-Agent: Mutt/1.10.1 (2018-07-13) X-ClientProxiedBy: ZR0P278CA0058.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:21::9) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d56c6da7-6ea5-495b-da1f-08d9c12bef1c X-MS-TrafficTypeDiagnostic: MWHPR1001MB2367:EE_ X-Microsoft-Antispam-PRVS: <MWHPR1001MB236779B55592080AC8EAF7D28E789@MWHPR1001MB2367.namprd10.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:2733; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Hyd+cCW42Sq8VAqP5eoxEv5xIOBFYMxLq00eo+GeI1urVrGMJYrohxPXeJdZYxqpTR7tE657P+dTw1OArDXsofgOxba0RbN5hx/ixpZZ7Cc4Xzo4xtPXIb3BzlR+zGE/VswzaL0mfjIWkQmI5Kj7Cv+VFPHjSyL78eeeUbnmOfYzl6+P4kOkp+J6RRs59t1LpYECz7D6QwEavfKB4my1K3SAHBrzrLXqlUfTqFP0Z6UWOOK4GKeu1CQQJE4x+iQyvIH7cXVffil0VkpG2ZLWr4wc4tLOkKMUdJxOUw5WMGnu4AwIzx4LX4Q9SZjNxjz9+CV/blpLP0xRnrwE1QWntEjNO33Brj6EL+q8a+BZGe7vfAD83EyuQc+g/c4AtnCdELxN3WLaxadx5LvtQyqHWzmlwhZCWFW35eMI9CvCwGx4kTbPZFxf5qsscMJFHHb7KIcRgH2ncgmnjXKk81mECchPlMY/UYmnL8jdxcEHhnYUIsQNe7bBcYYqn1oBdcgjiWwksfViGJdi54qoppyeSP58iMElLpmQZfoFPKxxX6D1kk8UJroVc9xQD0yZMAb/QQyFNWbna9SMN3LVsAiSaEhQ6JIG6+91shGOQEiPVVsXdvCPPf/ZB9GmfkpyPupKr9vEF6fBXxnES37F2Z7eI2SnE9OZ/Rq241UZV6604AK4U0KgsJpjrgLDXFC23uSSzatOpNH242HNtDfwCjXnAg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2365.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(7916004)(366004)(33716001)(508600001)(6666004)(83380400001)(8936002)(66556008)(44832011)(2906002)(33656002)(66476007)(8676002)(66946007)(186003)(38350700002)(6506007)(316002)(38100700002)(7416002)(26005)(4744005)(6486002)(1076003)(52116002)(9686003)(6512007)(86362001)(5660300002)(4326008)(110136005)(54906003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2fW2y8eRzQR+BXb4I2Xlkb0CM9rCD3i/KOaknjlwGzADBUQ+dMkjCTEswJukv9+Ifg4V5BeZ5A6FptCKeqXJrD/6mow4i5RdNRG5YyWrvSXCzVh/+56eD5uM4te6xyp/hHoLgkUo9WlEW0I7VWdSDLTw9YKDCbjZM2vJotwi/POUN16O8kTEWLbtsOHc+DCfqq7ZZuZ3+Fl7OWKRUeCL361ycnzdrgvHvm+IEDiBhh4HKB+qeFvFMF1QPPLxt6isI85VPIP8mp0jBDXKB5e46HFkoff+JVHHcW/eFJVy/tufp/OVYHaNUNHOQnkbBuJgRj7yC0xPo9KXWp8HgGfLUKflr8TpOeEIHlFwOGs7NBW8TJ8cmzRm51p0p0gdN5eiqPE5i5XJDFRlZylJMyEaVEqJ6M2pZKowoogdxQ3bcMe01Hg/4yBXHWXobpszwSQeSAQ2+PaoqA1SGAnlX4LwehB44Zb9k4kBMbgtbu+zb8wrBo/xMtT3lXp/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x96ChZSpLNyYVXQES77Wu2l/L8706JaaxgHRw3T6hSqT+JIxeRJH1MvA49xPdwkl26TZ/vw8GO3DBqWunFlDpbrg2jLhPw0OAU8PRXbh1ysNqgnX6OSa3R5WFMPMA5W13cfM= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d56c6da7-6ea5-495b-da1f-08d9c12bef1c X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2021 07:07:49.0504 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uCo9SRtM34O0pHheHGn7qJs0e/J+5Qyjut3GZ9Xf6tVDeRdCppIQPklEmvWZPjmTiw07to/HffYZ5EUChwh5p3l4PGhTg/bkA4JGtZAgoxY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1001MB2367 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10200 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 malwarescore=0 bulkscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112170039 X-Proofpoint-ORIG-GUID: gavGfaLB9EGLxmcSybuACXvRYuG6cKEG X-Proofpoint-GUID: gavGfaLB9EGLxmcSybuACXvRYuG6cKEG X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211216_230806_918210_93131ED9 X-CRM114-Status: GOOD ( 14.82 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org |
Series |
[net-next] net: mtk_eth_soc: delete an unneeded variable
|
expand
|
Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <kuba@kernel.org>: On Fri, 17 Dec 2021 10:07:35 +0300 you wrote: > There is already an "int err" declared at the start of the function so > re-use that instead of declaring a shadow err variable. > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > --- > drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 - > 1 file changed, 1 deletion(-) Here is the summary with links: - [net-next] net: mtk_eth_soc: delete an unneeded variable https://git.kernel.org/netdev/net-next/c/ddfbe18da55c You are awesome, thank you!
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index a068cf5c970f..bcb91b01e69f 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -2211,7 +2211,6 @@ static int mtk_open(struct net_device *dev) /* we run 2 netdevs on the same dma ring so we only bring it up once */ if (!refcount_read(ð->dma_refcnt)) { u32 gdm_config = MTK_GDMA_TO_PDMA; - int err; err = mtk_start_dma(eth); if (err)
There is already an "int err" declared at the start of the function so re-use that instead of declaring a shadow err variable. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 - 1 file changed, 1 deletion(-)