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
2013-04-09 14:13:19 -04:00
2014-08-08 15:57:28 -07:00
2011-08-08 11:40:15 +02:00
2014-08-08 15:57:28 -07: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
2014-01-30 16:56:55 -08:00
2015-04-02 12:39:28 -06:00
2015-02-19 14:27:42 +03:00
2013-11-08 09:10:30 -07:00
2009-03-26 21:15:27 +01:00
2015-01-21 16:28:57 +10:30