]> git.baikalelectronics.ru Git - kernel.git/commit
esp4: remove redundant initialization of pointer esph
authorColin Ian King <colin.king@canonical.com>
Tue, 30 Jan 2018 14:53:48 +0000 (14:53 +0000)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 13 Feb 2018 12:59:03 +0000 (13:59 +0100)
commita680885945dd822a97b632e312245adc2fb78521
tree318a2a206a067e0678b381f9e0525c1a245299df
parent66d7258ce2b2e665ba37b27aea8c110eaa50210e
esp4: remove redundant initialization of pointer esph

Pointer esph is being assigned a value that is never read, esph is
re-assigned and only read inside an if statement, hence the
initialization is redundant and can be removed.

Cleans up clang warning:
net/ipv4/esp4.c:657:21: warning: Value stored to 'esph' during
its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4.c