Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1282612pxy; Thu, 29 Apr 2021 03:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsRTZQQiuYTtwPWmPAx3RSGPQRDMMIXIGoIMQRz7ZAJiPnU0J+7cue16Wq8WPM3NbE4Ppt X-Received: by 2002:a63:1b10:: with SMTP id b16mr31136025pgb.308.1619693334519; Thu, 29 Apr 2021 03:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619693334; cv=none; d=google.com; s=arc-20160816; b=NJhef8IUJdpliIFKqVNFnGTK5qPy16kLe6tJMScaXQ/sQ5Ywfo0mWx1586QV+6GJA/ 82e/F+I8rVFbB1oWF5jRAxfsWOZ/YFUoQAab1LHkXNk/ZfPKf69WBqUcKFS/5BHTUOuP AuT2XetA0d6rRTl6E1c8aCEuK6LXDJLiWMftV/sjnUQcXo3Vd3Vli+OfDtSbvf0nYzuX VTb94oGW42YgA7ga288m735f+EfgepABVmROnUwiGchwnBDifNmNLHG2/UxCH5LLCrga wv1ur3q1M9CVrtaD0OrCgQOt9Y8y9J2+ZU9PzaKwjBzyiNSzPlCWqqbeYT/FBgp0Sp/E 69ng== 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=J98h6wFK9yJjEOff/xR0f1R9fdNykPmrmw813km3JzU=; b=u6XOKZByQsHBMo8d6bsc0OU1KkUXR2MbTyNDEWR+kSYj8szizUGa1YFqByMSFAa8Y/ +cHhpY/vymoElvGn4oP6EFKHl+eM0Z1KtH15tDM6TUUZayMfy7K8nT9EOPltL1MaYBPw V6z/b8lkayjG/ccYUUs67fH1H3zo5JBX8bGKrDViiJs+i3MqYNfoi2kFHvo2TOxqicXD uJhD3Jkw0CeYxIEIeo1JLT51w672kVNtWwTew0fnc/ViHEhdghsKhRuwvKBRcjHwkU1a dIuLt44YhvOkaIGx12T3ZL+N1SYmvMMFWUFBaFX11M+O0I4fljKiN1chVzIphre9NhVy rMUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 q9si2935338pls.236.2021.04.29.03.48.36; Thu, 29 Apr 2021 03:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S240529AbhD2KsD (ORCPT + 99 others); Thu, 29 Apr 2021 06:48:03 -0400 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:56116 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240486AbhD2KsC (ORCPT ); Thu, 29 Apr 2021 06:48:02 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;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=7;SR=0;TI=SMTPD_---0UX9hZFR_1619693232; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UX9hZFR_1619693232) by smtp.aliyun-inc.com(127.0.0.1); Thu, 29 Apr 2021 18:47:13 +0800 From: Yang Li To: m@bues.ch Cc: nathan@kernel.org, ndesaulniers@google.com, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Yang Li Subject: [PATCH] ssb: Remove redundant assignment to err Date: Thu, 29 Apr 2021 18:47:10 +0800 Message-Id: <1619693230-108804-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-wireless@vger.kernel.org Variable 'err' is set to zero but this value is never read as it is overwritten with a new value later on, hence it is a redundant assignment and can be removed. Clean up the following clang-analyzer warning: drivers/ssb/main.c:1306:3: warning: Value stored to 'err' is never read [clang-analyzer-deadcode.DeadStores] drivers/ssb/main.c:1312:3: warning: Value stored to 'err' is never read [clang-analyzer-deadcode.DeadStores] Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/ssb/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index 0a26984..ab23554 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c @@ -1303,13 +1303,11 @@ static int __init ssb_modinit(void) if (err) { pr_err("Broadcom 43xx PCI-SSB-bridge initialization failed\n"); /* don't fail SSB init because of this */ - err = 0; } err = ssb_host_pcmcia_init(); if (err) { pr_err("PCMCIA host initialization failed\n"); /* don't fail SSB init because of this */ - err = 0; } err = ssb_gige_init(); if (err) { -- 1.8.3.1