Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2002129rdb; Sun, 11 Feb 2024 07:06:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU3xj4dJ3okDXpwPna5JuyCm7vE0Slqw9UQ0VYZ+7g20Uw+2JQfb67hoQtw3FGtEPvSROReUGbPr1C3uS7lgJdsegR/q0MV+3QTssw5bg== X-Google-Smtp-Source: AGHT+IHoKzI8SQfMO4B8IPOB1GYNcqEgPtR/xFVuoSS8KCwgtbESKLnygpi/Zy1eJ+P7ny2yfM8C X-Received: by 2002:a17:907:209a:b0:a38:9e36:b45b with SMTP id pv26-20020a170907209a00b00a389e36b45bmr3061819ejb.25.1707664003464; Sun, 11 Feb 2024 07:06:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707664003; cv=pass; d=google.com; s=arc-20160816; b=d3uSPGyRtXEckBhiqfvRPTVfj2UIcAWappgAgCjiy1CmSInYtjHPS1FzblT9VSLhSW 0yLh/a/16ry2iAS1apqcHv+ntIeBr7hoCyZDi7k2zg0e45vgkhxVUr5n/GB1hN5FXHeF AjbEzypIeWRFzNTX/PFzlQ5jtoFv7bIcdLhDUV1GtkedXTHA8uHLLcJtmufSs5dtOA7u /4dYkahpLoBMj17ZYHqOK60Br9LUeadpXr8thX5fA0/gQ5ydxbaFAzMad8gbTbDShZcY lchy2uweEeTEoEcUnSizcG4gGAqaSgbiJJhNfFath86nBECbr4XlpbXeUkpdzW+jhUDA Ua6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=JiJMNHuWUt27aHbp77MNewC5nTaD1lGRVtCG8jv3klU=; fh=RygGv5YVheHbvLAj30oKWqKlqdHBId2UsNnlTbk2i7U=; b=EkRiI+XS8hSd5gY5/NL0sKZHl447m4dnBy8e/1q4pu93KK7EnVthoH3C7SdQKY/53E xpaFExTd4UVd94RtiyY2Ci0NIb02u9De04MZt5Ld9NOSerB3nkfPqumoYVYPf6R2fCmM LICppBsSgMCVZWhjCmKqOK/PTcvYZ3ZDLNqL3ZRW+TIwtt/85EO8XKnW/zWH+z0oM1FU J6UmwPKuNaTAbc2a+9TtTPnNkpbSDFxfUczbgRstoRe51LGueeHIwn9w9cXfYAipAi9l CJ/yPU8GWlsMyqh3mm0piJieJ9IS6NHIN7C0NpN39cS8420ao6f8ZP9DEM/GxaP8idjO 5eBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aladdin.ru dmarc=pass fromdomain=aladdin.ru); spf=pass (google.com: domain of linux-kernel+bounces-60810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aladdin.ru X-Forwarded-Encrypted: i=2; AJvYcCUpBkPQC0F7iedU1vi6FVUiukMcW4TLecYLG4eesijwkQJ4TIUF8l0BjkFn8xYXehwzPqXK/GHUx5BQw9JlKO8+Faa5oPCRwiWCsZoxjg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qu19-20020a170907111300b00a3c57668800si984149ejb.886.2024.02.11.07.06.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 07:06:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=aladdin.ru dmarc=pass fromdomain=aladdin.ru); spf=pass (google.com: domain of linux-kernel+bounces-60810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aladdin.ru Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D7C891F21CAD for ; Sun, 11 Feb 2024 15:06:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BB4F5B66C; Sun, 11 Feb 2024 15:05:59 +0000 (UTC) Received: from mail-out.aladdin-rd.ru (mail-out.aladdin-rd.ru [91.199.251.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 409D75BAFE; Sun, 11 Feb 2024 15:05:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.199.251.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707663958; cv=none; b=pcNGWLbo/l5qCn18GlqA3zFBp6xODZKYgErfuG4sopZZ/mzrIkeCxt/4MEL0a8ASgRIIy8vykHNgHbwV7R14j9UhkQhj7dwizb0UG6U4FksfeNFb3x+DRHvsXhgyZ8wsYXp0QeHWfDh0RoQQUR4RloUUxLt1UZjkVJU3whuO5/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707663958; c=relaxed/simple; bh=L2erQr5VOzvtZwSGbBtPRPaYAXK9HLpbI4kvy9KiY1c=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=CoprA593RD82lJjfCjkuRn3eEoc2pWbInxT5eA7iHfxolgO/ich9SxPoix9je2v25A0h1uFeFelBVXNDWkxZjv35ICYLt5CPr9mEsEy4s/vlw+WD9Ql1ul/YjyfaGrXdS9pjlKIYMQMdPYB5QNb1RdzAZasrT5JcbbCv5EGzQY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aladdin.ru; spf=pass smtp.mailfrom=aladdin.ru; arc=none smtp.client-ip=91.199.251.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aladdin.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aladdin.ru From: Daniil Dulov To: Wolfgang Grandegger CC: Daniil Dulov , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Kurt Van Dijck , , , , Subject: [PATCH] can: softing: remove redundant NULL check Date: Sun, 11 Feb 2024 07:05:35 -0800 Message-ID: <20240211150535.3529-1-d.dulov@aladdin.ru> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EXCH-2016-01.aladdin.ru (192.168.1.101) To EXCH-2016-01.aladdin.ru (192.168.1.101) In this case dev cannot be NULL, so remove redundant check. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 03fd3cf5a179 ("can: add driver for Softing card") Signed-off-by: Daniil Dulov --- drivers/net/can/softing/softing_fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/softing/softing_fw.c b/drivers/net/can/softing/softing_fw.c index bad69a4abec1..5a3f9e4b0b62 100644 --- a/drivers/net/can/softing/softing_fw.c +++ b/drivers/net/can/softing/softing_fw.c @@ -436,7 +436,7 @@ int softing_startstop(struct net_device *dev, int up) return ret; bus_bitmask_start = 0; - if (dev && up) + if (up) /* prepare to start this bus as well */ bus_bitmask_start |= (1 << priv->index); /* bring netdevs down */ -- 2.25.1