]> git.baikalelectronics.ru Git - kernel.git/commit
phy: error handling for platform_device_register_simple()
authorDan Carpenter <error27@gmail.com>
Sat, 11 Apr 2009 08:52:29 +0000 (01:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Apr 2009 08:52:29 +0000 (01:52 -0700)
commited908f390566022967e3f1c5b7e0fcedfe739aac
treebe9f5df2f4fe924303d897a16e7af3b9cd75c422
parent3c922b7401aaf9cfdbf26540f0e5b652608bab7e
phy: error handling for platform_device_register_simple()

platform_device_register_simple() returns ERR_PTR() and not NULL.

Found by smatch (http://repo.or.cz/w/smatch.git).  Compile tested.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed.c