diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-05-08 22:55:17 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-24 05:11:16 (GMT) |
commit | 2abac4084fb91021371a97fc42963f3e01228a3b (patch) | |
tree | 385d6eb6c323f7a0c89022f75cf248b3e994944f /lib | |
parent | f28ba80c6a3e8bf7ec96e06667dd82e98ae1c672 (diff) | |
download | linux-2abac4084fb91021371a97fc42963f3e01228a3b.tar.xz |
drivers/misc/c2port/c2port-duramar2150.c: checking for NULL instead of IS_ERR()
commit 8128a31eaadbcdfa37774bbd28f3f00bac69996a upstream.
c2port_device_register() never returns NULL, it uses error pointers.
Link: http://lkml.kernel.org/r/20170412083321.GC3250@mwanda
Fixes: 65131cd52b9e ("c2port: add c2port support for Eurotech Duramar 2150")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Rodolfo Giometti <giometti@linux.it>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions