[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090423175648.GA4406@lixom.net>
Date: Thu, 23 Apr 2009 12:56:48 -0500
From: Olof Johansson <olof@...om.net>
To: Roel Kluin <roel.kluin@...il.com>
Cc: netdev@...r.kernel.org, Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] pasemi_mac: mac_to_intf() error not noticed
On Thu, Apr 23, 2009 at 07:44:09PM +0200, Roel Kluin wrote:
> mac_to_intf() can return -1 when no device or function was found, but when
> mac->dma_if is unsigned. The error wasn't noticed.
This can in practice never happen which is likely why it went
unnoticed.
I object to the usage of err in the way you use it, it's completely
counterintuitive to name a variable that will hold valid data to 'err'.
So, define a new variable with an appropriate name, please.
-Olof
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists