Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:56879 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932986AbbGGRWO (ORCPT ); Tue, 7 Jul 2015 13:22:14 -0400 Message-ID: <559C0AC5.20801@infradead.org> (sfid-20150707_192228_657449_EA537E42) Date: Tue, 07 Jul 2015 10:22:13 -0700 From: Randy Dunlap MIME-Version: 1.0 To: David Binderman , Johnny Kim , Rachel Kim , "dean.lee@atmel.com" , Chris Park , "linux-wireless@vger.kernel.org" Subject: Re: linux-4.2-rc1/drivers/staging/wilc1000/linux_wlan.c:1874: bad test ? References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 07/07/15 04:19, David Binderman wrote: > Hello there, > > [linux-4.2-rc1/drivers/staging/wilc1000/linux_wlan.c:1874]: (style) A pointer can not be negative so it is either pointless or an error to check if it is. > > Source code is > > if (wilc_mac_thread < 0) { > > but > > struct task_struct *wilc_mac_thread; #include if (IS_ERR(wilc_mac_thread)) { -- ~Randy