Merge tag 'io_uring-5.12-2021-03-05' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / fs / proc / vmcore.c
index c3a345c..9a15334 100644 (file)
@@ -1503,11 +1503,8 @@ int vmcore_add_device_dump(struct vmcoredd_data *data)
        return 0;
 
 out_err:
-       if (buf)
-               vfree(buf);
-
-       if (dump)
-               vfree(dump);
+       vfree(buf);
+       vfree(dump);
 
        return ret;
 }