Merge tag 'exfat-for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linki...
[linux-2.6-microblaze.git] / sound / core / info_oss.c
index 8390048..1ba887c 100644 (file)
@@ -31,7 +31,8 @@ int snd_oss_info_register(int dev, int num, char *string)
                return -ENXIO;
        mutex_lock(&strings);
        if (string == NULL) {
-               if ((x = snd_sndstat_strings[num][dev]) != NULL) {
+               x = snd_sndstat_strings[num][dev];
+               if (x) {
                        kfree(x);
                        x = NULL;
                }