Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1751361pxy; Thu, 29 Apr 2021 13:46:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/VmDkA12+zIsWg7m8UE0lbkpK3xx3aM00MkMU7NA/j386l4fQOU39EAH5Dnunxy67v4ki X-Received: by 2002:a17:906:7189:: with SMTP id h9mr397115ejk.71.1619729199699; Thu, 29 Apr 2021 13:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619729199; cv=none; d=google.com; s=arc-20160816; b=JTjy0+hAnJWxcLLwZQqSd88cnrEVH9kCj9eFY00/Bw6qYcqWKwAWK9Dq1rzjbjb8T8 w30lNN9pTRhM+JF2mijI8+BFtNl1b4CdLOOay3hk+pEwDeAqM4roWduLWArOJM8iWM5g kboGcjUi9J9Wo1r6BXoXKfRCPyO+B+hcYT3mCMTsv3ZQ6u4qoo6jpLinHN4i4Y+HPcKS CJvQ/+apVcDmjv8xi5jsJTv8YobvjdPH2dj7xKGUOQIOe3QECMGTKcvq9VQpOD4Wk3s/ CNuikmNdfcLyIT4FV1zg3okUtrenn/Mn2W09XlZT/h2kXwQrb3xgAX1hqturjdnb7QXQ QweA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3LxPuCgToC6BqX+ulrvdpilQNWF5cmCNmQX8pOvdDq8=; b=MNeOy2ZXeFBTyMMtFCO0DbR7leYs3XrX+gWJ5MjOowYRNUILsB8cTD7HgGwijMFewV ua2B2deIiFKEl325kfw+a/pd9etoHl23qMPF1Q/+BV0QdJtAPmHJ1VvT2IXQfGXL+7uG E7rzXXDxX+yNVa9sJaeE3CpmOSX5OvJmKVxuOANO8IofONj/pjSplyGsbv3jNky9VoaY VyL2dZg7zVp9I+XUX7TBL5nF/IuU/GHwAvgIdJUICW/4jjvnICc0cntRvVBJP+BOl2hs GkfeqO/vkkyaJ3m8ltghl2dg8kRAIARoU3M0EQ5db0SMeTTsVtEPwELs8XTGo5M1QmOJ uD8w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds7si1067043ejc.72.2021.04.29.13.46.15; Thu, 29 Apr 2021 13:46:39 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236953AbhD2UUC (ORCPT + 99 others); Thu, 29 Apr 2021 16:20:02 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:53092 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbhD2UUB (ORCPT ); Thu, 29 Apr 2021 16:20:01 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id AC1301C0B9F; Thu, 29 Apr 2021 22:19:13 +0200 (CEST) Date: Thu, 29 Apr 2021 22:19:13 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Aditya Pakki , Hans Verkuil , Mauro Carvalho Chehab Subject: Re: [PATCH 058/190] Revert "media: cx231xx: replace BUG_ON with recovery code" Message-ID: <20210429201913.GH31692@amd> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-59-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IbVRjBtIbJdbeK1C" Content-Disposition: inline In-Reply-To: <20210421130105.1226686-59-gregkh@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --IbVRjBtIbJdbeK1C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! i2c.c > index c6659253c6fb..f33b6a077d57 100644 > --- a/drivers/media/usb/cx231xx/cx231xx-i2c.c > +++ b/drivers/media/usb/cx231xx/cx231xx-i2c.c > @@ -515,8 +515,7 @@ int cx231xx_i2c_register(struct cx231xx_i2c *bus) > { > struct cx231xx *dev =3D bus->dev; > =20 > - if (!dev->cx231xx_send_usb_command) > - return -EINVAL; > + BUG_ON(!dev->cx231xx_send_usb_command); > =20 > bus->i2c_adap =3D cx231xx_adap_template; > bus->i2c_adap.dev.parent =3D dev->dev; No big deal either way, and this will only be hit during development. Linus does not like BUGs, so I'd keep this. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --IbVRjBtIbJdbeK1C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmCLFMEACgkQMOfwapXb+vJttgCfTFmrErR7nc21scrzzK8qxsxO tWAAoJnBCy0oUriYCvU5qcu9t1QeO0qP =VI4q -----END PGP SIGNATURE----- --IbVRjBtIbJdbeK1C--