Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932437AbbFETQj (ORCPT ); Fri, 5 Jun 2015 15:16:39 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:39381 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751327AbbFETQf (ORCPT ); Fri, 5 Jun 2015 15:16:35 -0400 Date: Fri, 5 Jun 2015 15:16:10 -0400 From: Neil Horman To: Nicholas Krause Cc: vyasevich@gmail.com, davem@davemloft.net, linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sctp: Simplify and make the function sctp_assoc_lookup_laddr bool Message-ID: <20150605191610.GC29877@hmsreliant.think-freely.org> References: <1433526062-2364-1-git-send-email-xerofoify@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433526062-2364-1-git-send-email-xerofoify@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 753 Lines: 17 On Fri, Jun 05, 2015 at 01:41:02PM -0400, Nicholas Krause wrote: > This makes the function sctp_assoc_lookup_laddr bool due to it > only returning either one or zero as its return value. Further > more this function can we simplified to return the if statement > as part of this function directly and thus remove the no longer > required if statement due to this function now being declared > as bool. > > Signed-off-by: Nicholas Krause Acked-by: Neil Horman -- 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/