diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-07-17 07:03:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:03 -0400 |
commit | 00d59405cf6d7ef8932394ab5a12da1a50ce581e (patch) | |
tree | ccd0c170b673a17792207b2b5816978bb27da436 /drivers/md/dm.c | |
parent | 294462a5c6c4fb9a6ced9cb5a368ff335f1b656e (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/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index f4f7d35561ab..846614e676c6 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -161,9 +161,7 @@ static void local_exit(void) | |||
161 | { | 161 | { |
162 | kmem_cache_destroy(_tio_cache); | 162 | kmem_cache_destroy(_tio_cache); |
163 | kmem_cache_destroy(_io_cache); | 163 | kmem_cache_destroy(_io_cache); |
164 | 164 | unregister_blkdev(_major, _name); | |
165 | if (unregister_blkdev(_major, _name) < 0) | ||
166 | DMERR("unregister_blkdev failed"); | ||
167 | 165 | ||
168 | _major = 0; | 166 | _major = 0; |
169 | 167 | ||