Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp393369ybb; Fri, 10 Apr 2020 02:11:26 -0700 (PDT) X-Google-Smtp-Source: APiQypLzMK1CiP/YkXQcN99UOtSAbFzxjiYi8ZFZn/lG9enSCGWm2EU0kf9zodKT2bqaBImf0Rp7 X-Received: by 2002:aed:2ee3:: with SMTP id k90mr3304667qtd.211.1586509886767; Fri, 10 Apr 2020 02:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586509886; cv=none; d=google.com; s=arc-20160816; b=STc7rhNyW+vaZ+6SMGMzFxpH2dQwHuz/pTwrAC30gAvteZuKPB/Jeb5NAzDec2BiuL iSJpC2nnJuNzpQDStd0ipZy8xF/3C8b4De8RS3T+uxu8ED67ccvxU1i1zsv6tU3JhOe8 iq8OVwIuDtDZe5x/ly8cJWZE9RtRQ2noiggeTiulRs1tETAWdpud9BqvpM0UwWWZinQz mTfQVBcexXhq/kH+X0rHmUMy+4nuqPwvR18FIUWgkSmgvv5Vywk6Hl7K/MVwDUVepwe9 s5ug5RpddnO9TACje4fT5FQEi5hmc7X2+s1Kl2ewrVrYowP1/Hb4YjXMdhEtRYfVqyN9 005g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=GGhyW8qu2GYYq8Nhqu6DGVAaKi4mvGuQtLtRlhEHtNg=; b=JnlVF6/kebTNRW0qwCVBZTJ5c/RfFsmcc2ulTZJ8HpEoxU6WWnYU6WP3l1wMBG6X91 J6a95S5QYJJbKCHCc3ZpYrTx2QDwdy5Nv9GNkTSbXsuR8/is8vgZlOj7dUOSapSZJkp1 8P+cSHXL31K5ktI7WSuum85PmyTQOHDUNMQG9XT/hdRkFDu8WhGfucEzJPs7cHpvR2Bm oSKBr2Dk4UGCUhqNQauTrAZFwdzggG0F8etjguYjlAaEs1+In6zoWI5vmkI2mhIBqnxO JZ1jRDFVz9hLZaFagmvqGifvDygpyVKD2BfI3Hwg8WycjIr12LFCZTtFOHl3gAWdZUFN fc1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 w2si711470qvy.105.2020.04.10.02.11.12; Fri, 10 Apr 2020 02:11:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726143AbgDJJKy (ORCPT + 99 others); Fri, 10 Apr 2020 05:10:54 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37894 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725897AbgDJJKy (ORCPT ); Fri, 10 Apr 2020 05:10:54 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 30B5BEFD006BE3C7C63C; Fri, 10 Apr 2020 17:10:51 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Apr 2020 17:10:43 +0800 From: Jason Yan To: , , , , , CC: Jason Yan Subject: [PATCH] wireless: cw1200: make cw1200_spi_irq_unsubscribe() void Date: Fri, 10 Apr 2020 17:09:10 +0800 Message-ID: <20200410090910.27132-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix the following coccicheck warning: drivers/net/wireless/st/cw1200/cw1200_spi.c:273:5-8: Unneeded variable: "ret". Return "0" on line 279 Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/net/wireless/st/cw1200/cw1200_spi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/wireless/st/cw1200/cw1200_spi.c b/drivers/net/wireless/st/cw1200/cw1200_spi.c index ef01caac629c..271ed2ce2d7f 100644 --- a/drivers/net/wireless/st/cw1200/cw1200_spi.c +++ b/drivers/net/wireless/st/cw1200/cw1200_spi.c @@ -268,15 +268,11 @@ static int cw1200_spi_irq_subscribe(struct hwbus_priv *self) return ret; } -static int cw1200_spi_irq_unsubscribe(struct hwbus_priv *self) +static void cw1200_spi_irq_unsubscribe(struct hwbus_priv *self) { - int ret = 0; - pr_debug("SW IRQ unsubscribe\n"); disable_irq_wake(self->func->irq); free_irq(self->func->irq, self); - - return ret; } static int cw1200_spi_off(const struct cw1200_platform_data_spi *pdata) -- 2.17.2