[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100226.015420.66646406.davem@davemloft.net>
Date: Fri, 26 Feb 2010 01:54:20 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: error27@...il.com
Cc: grant.likely@...retlab.ca, jeremy.kerr@...onical.com,
afleming@...escale.com, jezz@...mic.org,
devicetree-discuss@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [patch] of: check for IS_ERR()
From: Dan Carpenter <error27@...il.com>
Date: Fri, 26 Feb 2010 12:49:41 +0300
> get_phy_device() can return an ERR_PTR()
>
> Signed-off-by: Dan Carpenter <error27@...il.com>
> ---
> I don't have a cross compile environment set up so I can't even compile
> test this. :/ But err.h is included so it should be OK.
It should return ERR_PTR() consistently. Checking for both
NULL and ERR_PTR() is undesirable.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists