scripts: modpost: fix compilation warning
authorMichal Nazarewicz <mina86@mina86.com>
Sat, 26 Jul 2014 21:57:01 +0000 (07:27 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 27 Jul 2014 11:22:45 +0000 (20:52 +0930)
commitfcd38ed0ff263156c3917c70c2fb0b7e91bfeab1
treea0fef8e6a66ebf755af71069dd776b6a0a7d167b
parent37549e94c77a94a9c32b5ae3313a3801cb66adf9
scripts: modpost: fix compilation warning

The scripts/mod/modpost.c triggers the following warning:

scripts/mod/modpost.c: In function ‘remove_dot’:
scripts/mod/modpost.c:1710:10: warning: ignoring return value of ‘strtoul’, declared with attribute warn_unused_result [-Wunused-result]

The remove_dot function that calls strtoul does not care about the
numeric value of the string that is parsed but only looks for the
end of the numeric sequence.  As such, it's equivalent to just skip
over all digits.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
scripts/mod/modpost.c