From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: Re: [PATCH 3/6] i2c: Ignore return value of i2c_del_adapter() Date: Mon, 11 Mar 2013 17:52:11 +0000 Message-ID: <1363024331.2608.9.camel@bwh-desktop.uk.solarflarecom.com> References: <1362853009-20789-1-git-send-email-lars@metafoo.de> <1362853009-20789-4-git-send-email-lars@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1362853009-20789-4-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Lars-Peter Clausen Cc: Wolfram Sang , Ben Dooks , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jean Delvare , Guan Xuetao , Mauro Carvalho Chehab , Greg Kroah-Hartman , Alan Cox , Nicolas Ferre , Aaro Koskinen , Shawn Guo , Benjamin Herrenschmidt , Lars Poeschel List-Id: linux-i2c@vger.kernel.org On Sat, 2013-03-09 at 19:16 +0100, Lars-Peter Clausen wrote: > i2c_del_adapter() always returns 0. So all checks testing whether it will be > non zero will always evaluate to false and the conditional code is dead code. > This patch updates all callers of i2c_del_mux_adapter() to ignore the return > value and assume that it will always succeed (which it will). In a subsequent > patch the return type of i2c_del_adapter() will be made void. > > Cc: Jean Delvare > Cc: Guan Xuetao > Cc: Mauro Carvalho Chehab > Cc: Ben Hutchings Acked-by: Ben Hutchings (for the sfc changes) > Cc: Greg Kroah-Hartman > Cc: Alan Cox > Cc: Nicolas Ferre > Cc: Aaro Koskinen > Cc: Marek Vasut (commit_signer:11/20=55%) You should probably remove that get_maintainer.pl annotation! Ben. > Cc: Shawn Guo > Cc: Benjamin Herrenschmidt > Cc: Lars Poeschel > Signed-off-by: Lars-Peter Clausen [...] -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.