Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1321362rdb; Fri, 16 Feb 2024 11:48:38 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCX5WaltkGMH5XuH2IzQ33AXjJwk/9wFESzxyleyLwOMlsxp7dTqSjo5teWyu73OAqO2iDPGgQPmk+le/vgG08irbbbsLU3AEPpGWu+hVA== X-Google-Smtp-Source: AGHT+IEw1wqoR7u+exDiQeKGRuc/eaWXTpLPTtxTBMej/3yy8M+evSHtL1GeCwWq3+aSsbK/4Ie1 X-Received: by 2002:a05:6402:1491:b0:561:ae53:565 with SMTP id e17-20020a056402149100b00561ae530565mr5051226edv.32.1708112917853; Fri, 16 Feb 2024 11:48:37 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1708112917; cv=pass; d=google.com; s=arc-20160816; b=iAoOr3f+mZcyoOyE3Fx0jzp94V+xCFXjjAH3WqWtdWWMd+8gpaT0KklF2ei7uQRqpQ doR76jyMFxlyqRGcLTP5eJV2odeIhzQGFbOBUFc2BCiirRIezYyBtgLclB1Os4OXz7I6 /AsACa8xT/QcFHwxz9YAsH7xUkEcr8p+oB1CRYvZefoLNROL/DTrTt8PDTZ3ddLts+2s a2QtLE+e5/AiK/lz3qz/S4wN80drDt4ZALZ1WMpszAhhLcwyuniEQGw0yFRgSpankvSJ DV4uPRSWiX6zIgB0mcRRZYVr2vq3IDrNfGos3JwSPgxzKuUUAnNovyhjKoXtdVG0CiKA llqw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature; bh=9MVBjdTVYapRTGhwhTcOMWbNz5YT9tAdKc3x5vE1TuI=; fh=WY3Bl/p1Xt/UuAoGmRaWJDrnWQ2FKGWz4yZYfuGUkmk=; b=CFM7YrlUQoX0ZHM1KAn8a8812nOcL9RAhJkOS/mIlr/62/HRC9WW3dEVo50+rJamoi mcIUxHOu1RbwRAJcVrq6eaW5mr1DmtNd2kHPzUgdAbPK1TrXXSNxV8guBt5r1iCkizUB Wfu1TJe9FLreSrVw2Looowk/wxABruRLZRSfL6OSe6Z4ec/W8DGB7wiBLI0hBOnwtPkc 4pTlEaXDXo3a8024F1AkxtRLln2vm7fC8wwEfCFtEZhXKyT01bG4BXV4bLWTMAHdKGTO MII5O/5LIgPbod2PNQeLLZsmEMQyDGQMnrDlD+GY24tujOXTj5MlKO3Uhb3uK5hwvG2G u2cg==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@hartkopp.net header.s=strato-dkim-0002 header.b=VY15vxuq; dkim=neutral (no key) header.i=@hartkopp.net header.s=strato-dkim-0003; arc=pass (i=2 spf=pass spfdomain=hartkopp.net dkim=pass dkdomain=hartkopp.net dmarc=pass fromdomain=hartkopp.net); spf=pass (google.com: domain of linux-kernel+bounces-69265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=hartkopp.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b22-20020aa7c916000000b0056269ec3f42si227337edt.245.2024.02.16.11.48.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 11:48:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@hartkopp.net header.s=strato-dkim-0002 header.b=VY15vxuq; dkim=neutral (no key) header.i=@hartkopp.net header.s=strato-dkim-0003; arc=pass (i=2 spf=pass spfdomain=hartkopp.net dkim=pass dkdomain=hartkopp.net dmarc=pass fromdomain=hartkopp.net); spf=pass (google.com: domain of linux-kernel+bounces-69265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=hartkopp.net 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 932A71F24893 for ; Fri, 16 Feb 2024 19:48:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 829B713849C; Fri, 16 Feb 2024 19:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=hartkopp.net header.i=@hartkopp.net header.b="VY15vxuq"; dkim=permerror (0-bit key) header.d=hartkopp.net header.i=@hartkopp.net header.b="cDmr2Ici" Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B763137C3B; Fri, 16 Feb 2024 19:48:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=85.215.255.54 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708112896; cv=pass; b=sh4uKNqvDgzjXomB58VXpGcKJDAUwuVe10LCCO+B3977SzYA0D7TosizdLU2WgCdi1czd8IIKuApUbrCPNykk822Qre1BOzNh7OKANT280f7SbqpVIqGOq0ML9fDjt3Z+I1guT4bMneoC1TUWq6cEtZC/A3vyhWUaZ3jMLR1ZQw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708112896; c=relaxed/simple; bh=XhOtdNnL6eEzH/sKAz15MgQet09Za2R2LkT+X2Dc7DE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fW/Nc4OuMyQLfrJFr84IhTj9bDv+3In7O/UJ8Ykq4RNjoxkZJgXhJrzzNOkHOMbs00rKPmyEA5N+XIXd4iMHQdUynVMeGugI9HBMCQI64ONmbrJOYL/Gd0RK8PwqYVrIAL8UqShBBs/DAIVZN1H9koht4rBSE61N/kYR3ekKy6o= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hartkopp.net; spf=pass smtp.mailfrom=hartkopp.net; dkim=pass (2048-bit key) header.d=hartkopp.net header.i=@hartkopp.net header.b=VY15vxuq; dkim=permerror (0-bit key) header.d=hartkopp.net header.i=@hartkopp.net header.b=cDmr2Ici; arc=pass smtp.client-ip=85.215.255.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hartkopp.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hartkopp.net ARC-Seal: i=1; a=rsa-sha256; t=1708112869; cv=none; d=strato.com; s=strato-dkim-0002; b=KGkoHJFu2YAlYmriH2+xQyJ9nwsngEiqlNNCm1xKWUd/hVUtuwsDDRSoCsVRXXEjqP c89EaBZg4ku2z/c7mQD4aiz8UsdKrAhV68tq50K5MfIGIb0UFkYXCbu99DOI48lx2iOQ lFVspYW4wFrTAr16VzPWJjLeMK21CUfu7W3ZeKTpnd/h1tVPi6DHQVtIScOu3vEpOxbu rCa+o0dCTquogTQ2hIhB5e2c+Vn8qXLchjHsyE3M1H0O/RTtv8d8r1lplO3e/bC2upfC Zjzy87bkafLyv9PZ+i7d2gddL/xmYxUldb1H3m6/J6G6dOOZ4t/BNVke2sI0I4iUPjp8 ldeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1708112869; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:Cc:To:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=9MVBjdTVYapRTGhwhTcOMWbNz5YT9tAdKc3x5vE1TuI=; b=qmFwEJ/zZoHWbdR5b06JvaVwBXLCdP++GsVRXYM0dkxv5xT99zfw6IeUUNVzOkE0Vd FJHSzm04HfzzfyU39DjhuKzbWsR6X4nsr/ZAK3+YW1UjB6aQpyRkY5UJ2Gsg1OLadj1e 2GRzp6InNsbwkV5BdzimIdImPiDAzyGyYWBV/5CXHh2rQrGmzx/G//TFJBUTWpEAaXm7 3HzMZM9at+LURFl72cs2jH7ynu8PUJckguYr53xQOMpa4nHdEU+NfGIsYVPYQV8dXVGX 2HXWuGgK+rSNOk0VDZ1KDipVgB9CU8fyfKMUhG7owZNr4lgcMgYlMFwe4TGPVH8c3QgG DhaA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1708112869; s=strato-dkim-0002; d=hartkopp.net; h=In-Reply-To:From:References:Cc:To:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=9MVBjdTVYapRTGhwhTcOMWbNz5YT9tAdKc3x5vE1TuI=; b=VY15vxuqw0SNGfl/4aYQdwhegCPEipJcXkOG6X0zRmiFqFept7kSaDKl11TeUFC7Jn Zox1bmsZUwvi7W7vi+F71ktHLhl9sFT3w42InTUdlr5tXaAw0TyF9WR7oNCHW6bVqHYo y6uPXAi7Agd2Bp/vizSSlQdHSWuI5/Bs8sXTeLyOHnN3Vcg2njlDMBAMpXUy9APYGk9X 4NTTMzOptjWcoE2LQBK2Xib4v5kwwZZe5Msdj/m4nEw9CvD8co4jhm/JZp6HJy2pHfHT 5sRkoo0ksVEnkz84Bypj2iiF5qu2oqs4qhWdRfm5Lc2O5pHy2DX9dy62tXpjdt56o2s5 bCCQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1708112869; s=strato-dkim-0003; d=hartkopp.net; h=In-Reply-To:From:References:Cc:To:Subject:Date:Message-ID:Cc:Date: From:Subject:Sender; bh=9MVBjdTVYapRTGhwhTcOMWbNz5YT9tAdKc3x5vE1TuI=; b=cDmr2Icii0xVmoHQ1vM/74ocO5tbT0UTzW/SouRaYASPAy0hso+p5O0B+z9XPTioJu pWx1sqZR7yGn1U9FUdBQ== X-RZG-AUTH: ":P2MHfkW8eP4Mre39l357AZT/I7AY/7nT2yrDxb8mjG14FZxedJy6qgO1qCHSa1GLptZHusl129OHEdFr0USEbHoO0g==" Received: from [IPV6:2a00:6020:4a8e:5010::923] by smtp.strato.de (RZmta 49.11.2 AUTH) with ESMTPSA id K49f9c01GJlm2Hx (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 16 Feb 2024 20:47:48 +0100 (CET) Message-ID: <12cd0fd0-be86-4af0-8d6b-85d3a81edd2a@hartkopp.net> Date: Fri, 16 Feb 2024 20:47:43 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] can: softing: remove redundant NULL check To: Simon Horman , Daniil Dulov Cc: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Kurt Van Dijck , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org References: <20240211150535.3529-1-d.dulov@aladdin.ru> <20240216172701.GP40273@kernel.org> Content-Language: en-US From: Oliver Hartkopp In-Reply-To: <20240216172701.GP40273@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Simon, I have a general question on the "Fixes:" tag in this patch: On 16.02.24 18:27, Simon Horman wrote: > On Sun, Feb 11, 2024 at 07:05:35AM -0800, Daniil Dulov wrote: >> 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") IMHO this is simply an improvement which is done by all patches applied to the kernel but it does not really "fix" anything from a functional standpoint. Shouldn't we either invent a new tag or better leave it out to not confuse the stable maintainers? Best regards, Oliver >> Signed-off-by: Daniil Dulov > > Hi Daniil, > > I am not sure that dev cannot be NULL. > But I do see that the code assumes it is not, and would crash if it is. > So I think that, functionally, your statement is correct. > > priv = netdev_priv(dev); > card = priv->card; > > Reviewed-by: Simon Horman >