From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753676AbaEUWNe (ORCPT ); Wed, 21 May 2014 18:13:34 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:37478 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753434AbaEUWNd (ORCPT ); Wed, 21 May 2014 18:13:33 -0400 Date: Thu, 22 May 2014 01:12:52 +0300 From: Dan Carpenter To: Rickard Strandqvist Cc: devel@driverdev.osuosl.org, Greg Kroah-Hartman , Josh Triplett , linux-kernel@vger.kernel.org, Geert Uytterhoeven , Manu Gupta , Larry Finger Subject: Re: [PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix for possible null pointer dereference Message-ID: <20140521221252.GG15585@mwanda> References: <1400621477-7603-1-git-send-email-rickard_strandqvist@spectrumdigital.se> <537BE4BB.4010308@lwfinger.net> <20140520235756.GA23550@cloud> <20140521072450.GT15585@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet21.oracle.com [141.146.126.237] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 21, 2014 at 11:51:06PM +0200, Rickard Strandqvist wrote: > Hi > > Exactly as you say Dan, cppcheck has found that there is a null check > at some point while the others in this case are missed. So I'm not for > unnecessary checks. > But we can instead agree that I make a patch that will remove all null > checks padapter? Yes. On this function remove all the checks for padapter. regards, dan carpenter