summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-01-02 16:00:57 -0500
committerKay Sievers <kay.sievers@vrfy.org>2012-01-02 22:45:19 +0100
commitd876eea1c48384f66f18e28803187def44c481be (patch)
tree78b279ab191a25d3276df1ae9275a9f69b2b966b
parenta8e49f591398ab3eae8c663a2764606b96f2a1a8 (diff)
hwdb: drop useless line freeing
getline() takes care of extending the buffer as needed, so no point in constantly freeing it before every call.
-rw-r--r--udev/udev-builtin-hwdb.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/udev/udev-builtin-hwdb.c b/udev/udev-builtin-hwdb.c
index e38c6b9d26..b6af4b6fcf 100644
--- a/udev/udev-builtin-hwdb.c
+++ b/udev/udev-builtin-hwdb.c
@@ -101,11 +101,6 @@ static int lookup_vid_pid(const char *database,
for (;;) {
size_t n;
- if (line) {
- free(line);
- line = NULL;
- }
-
if (getline(&line, &n, f) < 0)
break;