summaryrefslogtreecommitdiff
path: root/mac80211.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2017-05-14 08:52:08 +0300
committerTobias Klauser <tklauser@distanz.ch>2017-05-15 10:32:12 +0200
commitb463e1f265628f97967a01ce0a2cf18afe7b7aa3 (patch)
tree66436f3bcfb429593e4ab8155b5e431027da2763 /mac80211.c
parent5ca91a807a81db233e1b4443ea227bb1d0a7868f (diff)
trafgen: parser: Use proto_field_set_xxx where it is possible
Use proto_field_set_xxx(field, ...) instead of proto_hdr_field_set_xxx(hdr, fid, ...) to be more generic and do not depend on 'hdr' variable. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'mac80211.c')
0 files changed, 0 insertions, 0 deletions
7fb0b1f124f807'>diff)
avoid spurious "may be used uninitialized" warning
The timer type simplifications caused a new gcc warning: drivers/base/power/domain.c: In function ‘genpd_runtime_suspend’: drivers/base/power/domain.c:562:14: warning: ‘time_start’ may be used uninitialized in this function [-Wmaybe-uninitialized] elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); despite the actual use of "time_start" not having changed in any way. It appears that simply changing the type of ktime_t from a union to a plain scalar type made gcc check the use. The variable wasn't actually used uninitialized, but gcc apparently failed to notice that the conditional around the use was exactly the same as the conditional around the initialization of that variable. Add an unnecessary initialization just to shut up the compiler. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-grlib.c')