diff options
author | Geert Uytterhoeven <[email protected]> | 2016-01-15 14:44:31 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-01-15 15:11:55 -0500 |
commit | fb3311853c0f23391fc3441d49a46d076de57757 (patch) | |
tree | 8a4ddb81f42b974619b54725b00d7ed929008304 /tools/perf/scripts/python/stackcollapse.py | |
parent | 34ae6a1aa0540f0f781dd265366036355fdc8930 (diff) |
net: sctp: Move sequence start handling into sctp_transport_get_idx()
net/sctp/proc.c: In function ‘sctp_transport_get_idx’:
net/sctp/proc.c:313: warning: ‘obj’ may be used uninitialized in this function
This is currently a false positive, as all callers check for a zero
offset first, and handle this case in the exact same way.
Move the check and handling into sctp_transport_get_idx() to kill the
compiler warning, and avoid future bugs.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Marcelo Ricardo Leitner <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions