genhd must_check warning fix

Fixes:

block/genhd.c:361: warning: ignoring return value of ‘class_register’, declared with attribute warn_unused_result

Signed-off-by: Roland McGrath <roland@redhat.com>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Roland McGrath and committed by Linus Torvalds ee27a558 a8ae50ba

+3 -1
+3 -1
block/genhd.c
··· 360 360 361 361 static int __init genhd_device_init(void) 362 362 { 363 - class_register(&block_class); 363 + int error = class_register(&block_class); 364 + if (unlikely(error)) 365 + return error; 364 366 bdev_map = kobj_map_init(base_probe, &block_class_lock); 365 367 blk_dev_init(); 366 368