From: Tom Gundersen Date: Mon, 1 Sep 2014 20:59:52 +0000 (+0200) Subject: sd-rtnl: don't assign to unused variable X-Git-Tag: v217~678 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cedc611207b6a14cdbaf1d73e12b62ee55cc53de;p=thirdparty%2Fsystemd.git sd-rtnl: don't assign to unused variable Reported by Thomas H.P. Andersen . --- diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c index 906a9de1c09..30e33584c4a 100644 --- a/src/libsystemd/sd-rtnl/rtnl-message.c +++ b/src/libsystemd/sd-rtnl/rtnl-message.c @@ -531,7 +531,6 @@ static int add_rtattr(sd_rtnl_message *m, unsigned short type, const void *data, /* if no data was passed, make sure we still initialize the padding note that we can have data_length > 0 (used by some containers) */ padding = RTA_DATA(rta); - data_length = 0; } /* make sure also the padding at the end of the message is initialized */