X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=sound%2Fsound_core.c;h=99b73c675743661318ac5cf4bd3000e26e3627a7;hb=050decce5d7a096f37a24e5411bd950592f28415;hp=11e953a1fa45a06ab9243eca4d99d5b3f16ea9ef;hpb=703a8c2dfa5aa69b9b0a6684dc78ea28a2c7fe3e;p=firefly-linux-kernel-4.4.55.git diff --git a/sound/sound_core.c b/sound/sound_core.c index 11e953a1fa45..99b73c675743 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c @@ -655,7 +655,7 @@ static void cleanup_oss_soundcore(void) static int __init init_oss_soundcore(void) { if (preclaim_oss && - register_chrdev(SOUND_MAJOR, "sound", &soundcore_fops) == -1) { + register_chrdev(SOUND_MAJOR, "sound", &soundcore_fops) < 0) { printk(KERN_ERR "soundcore: sound device already in use.\n"); return -EBUSY; }