OSDN Git Service

Make a free non-conditional since the condition can't be ture.
authorPeter Jones <pjones@redhat.com>
Wed, 10 Sep 2014 20:24:03 +0000 (16:24 -0400)
committerPeter Jones <pjones@redhat.com>
Wed, 10 Sep 2014 20:55:59 +0000 (16:55 -0400)
Covscan again.  I wonder if it'll complain about this.

Signed-off-by: Peter Jones <pjones@redhat.com>
src/efibootmgr/efibootmgr.c

index 31807a9..f9c25e0 100644 (file)
@@ -463,8 +463,7 @@ read_boot_u16(const char *name)
        }
 
        rc = data[0];
-       if (data != NULL)
-               free(data);
+       free(data);
        return rc;
 }