]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: use explicit size of struct tcmsg, remove need to declare tcm
authorColin Ian King <colin.king@canonical.com>
Mon, 18 Sep 2017 11:40:38 +0000 (12:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Sep 2017 23:52:26 +0000 (16:52 -0700)
commit2545bf3b17ab80f3f45e18808a1052cb6baa7a8d
tree17411b6cd879cb10624a7ba03db6c82a3b01036b
parent2db652dfec21cadb4c51d90bfac23c44a959fe25
net_sched: use explicit size of struct tcmsg, remove need to declare tcm

Pointer tcm is being initialized and is never read, it is only being used
to determine the size of struct tcmsg.  Clean this up by removing
variable tcm and explicitly using the sizeof struct tcmsg rather than *tcm.
Cleans up clang warning:

warning: Value stored to 'tcm' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c