sd-rtnl: don't assign to unused variable

Reported by Thomas H.P. Andersen <phomes@gmail.com>.
This commit is contained in:
Tom Gundersen
2014-09-01 22:59:52 +02:00
parent 70e7d754dd
commit cedc611207
-1
View File
@@ -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 */