]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
c2port: fix device_create() return value check
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Tue, 23 Mar 2010 20:35:27 +0000 (13:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Mar 2010 23:31:21 +0000 (16:31 -0700)
commit8c363afe94b885d39ae2e93e41680282a470ad84
treeccd3f3a6a26f560c43d5b6c0f2ecdad22d9514e4
parentcb53237513bd1e090cce120efe12ede72c932b5f
c2port: fix device_create() return value check

Use IS_ERR() instead of comparing to NULL.

[akpm@linux-foundation.org: preserve the error code]
Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Cc: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/c2port/core.c