Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16b1fcf
)
blkid: remove no-op statement which caused a clang warning
author
Theodore Ts'o
<tytso@mit.edu>
Wed, 13 Mar 2013 18:34:08 +0000
(14:34 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 13 Mar 2013 18:34:08 +0000
(14:34 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/probe.c
patch
|
blob
|
history
diff --git
a/lib/blkid/probe.c
b/lib/blkid/probe.c
index
4a929b0
..
bd31fe0
100644
(file)
--- a/
lib/blkid/probe.c
+++ b/
lib/blkid/probe.c
@@
-43,10
+43,8
@@
static int figure_label_len(const unsigned char *label, int len)
while ((*end == ' ' || *end == 0) && end >= label)
--end;
- if (end >= label) {
- label = label;
+ if (end >= label)
return end - label + 1;
- }
return 0;
}