diff options
author | Karel Zak | 2012-09-07 11:39:38 +0200 |
---|---|---|
committer | Karel Zak | 2012-09-07 11:39:38 +0200 |
commit | 38efd1e2b7d4d108026b33a1c720f671b16dd771 (patch) | |
tree | e334d8011501b67811977dcc101740134df383db /misc-utils/namei.c | |
parent | libblkid: check fchmod() return value [coverity scan] (diff) | |
download | kernel-qcow2-util-linux-38efd1e2b7d4d108026b33a1c720f671b16dd771.tar.gz kernel-qcow2-util-linux-38efd1e2b7d4d108026b33a1c720f671b16dd771.tar.xz kernel-qcow2-util-linux-38efd1e2b7d4d108026b33a1c720f671b16dd771.zip |
namei: remove dead code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/namei.c')
-rw-r--r-- | misc-utils/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/namei.c b/misc-utils/namei.c index 376a2f0c3..e067bea0e 100644 --- a/misc-utils/namei.c +++ b/misc-utils/namei.c @@ -189,7 +189,7 @@ readlink_to_namei(struct namei *nm, const char *path) if (p) { isrel = 1; - nm->relstart = p ? p - path : 0; + nm->relstart = p - path; sz += nm->relstart + 1; } } |