diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-07-19 04:47:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:43 -0400 |
commit | 68fc4fabca897a09f75f53bac14cdc7a98f52210 (patch) | |
tree | c010fa0d091a543a966aad82926d0fb5c2831f1f /sound/core | |
parent | cb00ea3528eb3c09eae9871d6e7d038776e952e2 (diff) |
unregister_chrdev(): ignore the return value
unregister_chrdev() always returns 0. There is no need to check the return
value.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/sound.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/core/sound.c b/sound/core/sound.c index 70600df94d62..8dc7a3b32b98 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c | |||
@@ -446,8 +446,7 @@ static void __exit alsa_sound_exit(void) | |||
446 | { | 446 | { |
447 | snd_info_minor_unregister(); | 447 | snd_info_minor_unregister(); |
448 | snd_info_done(); | 448 | snd_info_done(); |
449 | if (unregister_chrdev(major, "alsa") != 0) | 449 | unregister_chrdev(major, "alsa"); |
450 | snd_printk(KERN_ERR "unable to unregister major device number %d\n", major); | ||
451 | } | 450 | } |
452 | 451 | ||
453 | module_init(alsa_sound_init) | 452 | module_init(alsa_sound_init) |