esp6: remove redundant initialization of esph
authorColin Ian King <colin.king@canonical.com>
Thu, 19 Oct 2017 13:09:47 +0000 (15:09 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 23 Oct 2017 09:05:20 +0000 (11:05 +0200)
commitd3cc547d9ccbe223b06e87256fdd571eb63762b7
tree0a580304ef9923aa6a7fbb3e491dbfa9b2f715c2
parenta1b831f23a2b3306ecf275872a54abcf97b0b977
esp6: remove redundant initialization of esph

The pointer esph is being initialized with a value that is never
read and then being updated.  Remove the redundant initialization
and move the declaration and initializtion of esph to the local
code block.

Cleans up clang warning:
net/ipv6/esp6.c:562: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/ipv6/esp6.c