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-03-06 01:29:16 +01:00
2015-03-02 12:08:43 -05:00
2015-02-17 09:27:54 -08:00
2015-03-06 22:35:49 +01:00
2015-02-15 10:48:44 -08:00
2015-02-25 11:38:46 +11:00
2015-02-18 09:05:48 -08:00
2015-02-18 09:43:46 -08:00
2015-03-12 09:45:46 -07:00
2015-02-17 09:38:59 -08:00
2015-02-15 10:24:55 -08:00
2015-02-18 08:40:29 +01:00
2015-02-21 19:16:42 -08:00
2015-02-17 09:38:59 -08:00
2015-03-08 12:25:40 -07:00
2015-03-08 12:47:18 -07:00
2015-02-15 10:24:55 -08:00