Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734550

Re: [PATCH] net_sched: use explicit size of struct tcmsg, remove need to declare tcm

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] net_sched: use explicit size of struct tcmsg, remove need to declare tcm
Date 2017-09-19 02:00 +0200
Message-ID <ure7g-4Xi-3@gated-at.bofh.it> (permalink)
References <ur2IO-5LK-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Colin King <colin.king@canonical.com>
Date: Mon, 18 Sep 2017 12:40:38 +0100

> From: Colin Ian King <colin.king@canonical.com>
> 
> 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>

Applied to net-next.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] net_sched: use explicit size of struct tcmsg, remove need to declare tcm Colin King <colin.king@canonical.com> - 2017-09-18 13:50 +0200
  RE: [PATCH] net_sched: use explicit size of struct tcmsg, remove  need to declare tcm David Laight <David.Laight@ACULAB.COM> - 2017-09-18 14:20 +0200
    Re: [PATCH] net_sched: use explicit size of struct tcmsg, remove  need to declare tcm Eric Dumazet <eric.dumazet@gmail.com> - 2017-09-18 17:10 +0200
      RE: [PATCH] net_sched: use explicit size of struct tcmsg, remove  need to declare tcm David Laight <David.Laight@ACULAB.COM> - 2017-09-18 17:20 +0200
  Re: [PATCH] net_sched: use explicit size of struct tcmsg, remove  need to declare tcm David Miller <davem@davemloft.net> - 2017-09-19 02:00 +0200

csiph-web