Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761322AbbBIWKg (ORCPT ); Mon, 9 Feb 2015 17:10:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49627 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756026AbbBIWKe (ORCPT ); Mon, 9 Feb 2015 17:10:34 -0500 Date: Mon, 09 Feb 2015 14:10:18 -0800 (PST) Message-Id: <20150209.141018.2220346219639672419.davem@redhat.com> To: elfring@users.sourceforge.net Cc: eli@mellanox.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, julia.lawall@lip6.fr Subject: Re: [PATCH v2] net: Mellanox: Delete unnecessary checks before the function call "vunmap" From: David Miller In-Reply-To: <54D88A26.2060307@users.sourceforge.net> References: <54D22B29.3020200@users.sourceforge.net> <20150205.003404.261962007607296519.davem@davemloft.net> <54D88A26.2060307@users.sourceforge.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 731 Lines: 20 From: SF Markus Elfring Date: Mon, 09 Feb 2015 11:21:26 +0100 > From: Markus Elfring > Date: Mon, 9 Feb 2015 11:10:41 +0100 > > The vunmap() function performs also input parameter validation. > Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > Acked-by: Eli Cohen Applied. -- 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/