aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/z2ram.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2007-07-17 07:03:46 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 13:23:03 -0400
commit00d59405cf6d7ef8932394ab5a12da1a50ce581e (patch)
treeccd0c170b673a17792207b2b5816978bb27da436 /drivers/block/z2ram.c
parent294462a5c6c4fb9a6ced9cb5a368ff335f1b656e (diff)
unregister_blkdev() delete redundant messages in callers
No need to warn unregister_blkdev() failure by the callers. (The previous patch makes unregister_blkdev() print error message in error case) Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/z2ram.c')
-rw-r--r--drivers/block/z2ram.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c
index 2abf94cc3137..e40fa98842e5 100644
--- a/drivers/block/z2ram.c
+++ b/drivers/block/z2ram.c
@@ -371,9 +371,7 @@ static void __exit z2_exit(void)
371{ 371{
372 int i, j; 372 int i, j;
373 blk_unregister_region(MKDEV(Z2RAM_MAJOR, 0), 256); 373 blk_unregister_region(MKDEV(Z2RAM_MAJOR, 0), 256);
374 if ( unregister_blkdev( Z2RAM_MAJOR, DEVICE_NAME ) != 0 ) 374 unregister_blkdev(Z2RAM_MAJOR, DEVICE_NAME);
375 printk( KERN_ERR DEVICE_NAME ": unregister of device failed\n");
376
377 del_gendisk(z2ram_gendisk); 375 del_gendisk(z2ram_gendisk);
378 put_disk(z2ram_gendisk); 376 put_disk(z2ram_gendisk);
379 blk_cleanup_queue(z2_queue); 377 blk_cleanup_queue(z2_queue);