summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-30 01:38:36 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-31 14:28:36 -0400
commit4dd1de72e8e7ece77e8831e77eea650de404af75 (patch)
tree11193d7a3798b1bf4f592304af1e8efe9d46f770 /src/libudev/libudev-util.c
parenta7edaadd78271e1c35ff9032f068cb08de645437 (diff)
Remove some dead code
Based on coverity report.
Diffstat (limited to 'src/libudev/libudev-util.c')
-rw-r--r--src/libudev/libudev-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libudev/libudev-util.c b/src/libudev/libudev-util.c
index 44f6e4a863..714dc50ae9 100644
--- a/src/libudev/libudev-util.c
+++ b/src/libudev/libudev-util.c
@@ -241,8 +241,7 @@ int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size)
return -EINVAL;
base[0] = '\0';
}
- if (base == NULL)
- return -EINVAL;
+
strscpyl(base, size - (base - syspath), "/", &link_target[back * 3], NULL);
return 0;
}