drm/i915/selftests: Fix engine reset count storage for multi-tile
[platform/kernel/linux-starfive.git] / sound / core / info_oss.c
index 1ba887c..ebc714b 100644 (file)
@@ -32,10 +32,8 @@ int snd_oss_info_register(int dev, int num, char *string)
        mutex_lock(&strings);
        if (string == NULL) {
                x = snd_sndstat_strings[num][dev];
-               if (x) {
-                       kfree(x);
-                       x = NULL;
-               }
+               kfree(x);
+               x = NULL;
        } else {
                x = kstrdup(string, GFP_KERNEL);
                if (x == NULL) {