Alexey Khoroshilov c727040bda NVMe: Fix error handling of class_create("nvme")
class_create() returns ERR_PTR on failure,
so IS_ERR() should be used instead of check for NULL.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-04-07 19:08:58 -06:00
..
2015-02-16 17:56:04 -08:00
2015-02-16 17:56:04 -08:00
2015-01-02 15:20:25 -07:00
2015-01-02 15:20:25 -07:00
2015-04-02 12:39:28 -06:00
2015-02-19 14:27:42 +03:00
2015-01-21 16:28:57 +10:30