From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754867AbaFPJFk (ORCPT ); Mon, 16 Jun 2014 05:05:40 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:18786 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754772AbaFPJFg (ORCPT ); Mon, 16 Jun 2014 05:05:36 -0400 Date: Mon, 16 Jun 2014 12:05:25 +0300 From: Dan Carpenter To: Rickard Strandqvist Cc: Larry Finger , Florian Schilhabel , devel@driverdev.osuosl.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Paul Gortmaker , Thomas Cort , Andy Shevchenko Subject: Re: [PATCH] staging: rtl8712: rtl871x_ioctl_linux.c: Cleaning up useless if statement Message-ID: <20140616090525.GG5500@mwanda> References: <1402852858-1352-1-git-send-email-rickard_strandqvist@spectrumdigital.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1402852858-1352-1-git-send-email-rickard_strandqvist@spectrumdigital.se> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 15, 2014 at 07:20:57PM +0200, Rickard Strandqvist wrote: > The same code regardless of the outcome of the if statement. This may of > course be a miss and there should be a difference in the code. > And clean up another duplicate line of code. > > This was partly found using a static code analysis program called cppcheck. > We don't need a cover letter for a single patch. Just put this stuff in the patch description next time. regards, dan carpenter