Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752479Ab3CKRwS (ORCPT ); Mon, 11 Mar 2013 13:52:18 -0400 Received: from webmail.solarflare.com ([12.187.104.25]:21885 "EHLO webmail.solarflare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751181Ab3CKRwQ (ORCPT ); Mon, 11 Mar 2013 13:52:16 -0400 Message-ID: <1363024331.2608.9.camel@bwh-desktop.uk.solarflarecom.com> Subject: Re: [PATCH 3/6] i2c: Ignore return value of i2c_del_adapter() From: Ben Hutchings To: Lars-Peter Clausen CC: Wolfram Sang , Ben Dooks , , , Jean Delvare , Guan Xuetao , Mauro Carvalho Chehab , Greg Kroah-Hartman , Alan Cox , Nicolas Ferre , Aaro Koskinen , Shawn Guo , Benjamin Herrenschmidt , Lars Poeschel Date: Mon, 11 Mar 2013 17:52:11 +0000 In-Reply-To: <1362853009-20789-4-git-send-email-lars@metafoo.de> References: <1362853009-20789-1-git-send-email-lars@metafoo.de> <1362853009-20789-4-git-send-email-lars@metafoo.de> Organization: Solarflare Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-3.fc16) Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.17.20.137] X-TM-AS-Product-Ver: SMEX-10.0.0.1412-7.000.1014-19708.004 X-TM-AS-Result: No--15.532800-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1639 Lines: 41 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/