Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp88945pxf; Wed, 10 Mar 2021 00:54:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRTPCiX0JkW5NVihujrygToBqiCUWkWopVpg6zMy4h4L5vguUmtmYpSXDhFB3pyJx0x2Fi X-Received: by 2002:a17:907:d8a:: with SMTP id go10mr2585133ejc.46.1615366496259; Wed, 10 Mar 2021 00:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615366496; cv=none; d=google.com; s=arc-20160816; b=thII9+IIHHuiIrJXjQsYYrrEwT4dsJXxEaDfO/379aLLbLypqhNdj3SV3ywoE3HhRR XBApge94AcbG6tjnAnlU77R1AaV+eyTDfNWfZk6IIUQZaiFQjLXgsZO9g02dLB26goCx Lt2PoDQS9GQ5P3lyq+GdUDnLcG2Pnti/p3EQy9dxf6uP2fW/a/tJVbx8ckIhZWZMbY51 Hr/E06TAqhaC3SoVVVgV3m8RRPTqx0yxtxYMtjT0yGrfPYl2zpyK8ItegmDpYBN0mNEH Tj5+9IFNOnEQ1S9ncFln+Oqxq7KJQ7AT8AvUTD8OTBjTyVCX/q7FOzOVFl70jdlUVuQl mGqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=zmldrAl2NW5qrKVUo0LvQQzlOGp+oinOxogKwEw0TJg=; b=Vw9y7BHBHYPVtJrONpKRUqNO4KN5np507mM+iRP+EBIBMTus8jf3GZA2iBxn0OWjxx uYD/Gkfa7Vr3OADwqNN0VCgoWgt+UAJsp+jbiEu3PvySgYoUWzW+2v63KM7lQ+B83ZZH f9FQtnKqrDvbKRbw1ZDBgIuZvW4K/Mg49jiLxbNZ5JcyOnzr4XAWKSP3fvEE6AjskPmG VqaiLV8+fhmQbE91g39fZ5ucmH6mgpudJsSDo1H+2aS1vk1+ojDJ7WBKj5w/bE0sYAGL nQh1uUQM4EANm/J9gBudHLZejv6YhaT8kOMlXeT9j5njfk4M9ASsV2SGQvAA20kgjPY1 +OwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb26si11175901ejb.144.2021.03.10.00.54.33; Wed, 10 Mar 2021 00:54:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232458AbhCJIxf (ORCPT + 99 others); Wed, 10 Mar 2021 03:53:35 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:53745 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231539AbhCJIxJ (ORCPT ); Wed, 10 Mar 2021 03:53:09 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R621e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0URGfeKO_1615366385; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0URGfeKO_1615366385) by smtp.aliyun-inc.com(127.0.0.1); Wed, 10 Mar 2021 16:53:05 +0800 From: Yang Li To: isdn@linux-pingi.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] isdn: mISDN: remove unneeded variable 'ret' Date: Wed, 10 Mar 2021 16:53:04 +0800 Message-Id: <1615366384-12225-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./drivers/isdn/mISDN/dsp_core.c:956:6-9: Unneeded variable: "err". Return "0" on line 1001 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/isdn/mISDN/dsp_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/isdn/mISDN/dsp_core.c b/drivers/isdn/mISDN/dsp_core.c index 038e72a..4946ea1 100644 --- a/drivers/isdn/mISDN/dsp_core.c +++ b/drivers/isdn/mISDN/dsp_core.c @@ -953,7 +953,6 @@ { struct dsp *dsp = container_of(ch, struct dsp, ch); u_long flags; - int err = 0; if (debug & DEBUG_DSP_CTRL) printk(KERN_DEBUG "%s:(%x)\n", __func__, cmd); @@ -998,7 +997,7 @@ module_put(THIS_MODULE); break; } - return err; + return 0; } static void -- 1.8.3.1