diff options
author | Neil Armstrong <superna9999@gmail.com> | 2014-04-01 15:03:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-25 15:33:35 -0700 |
commit | 2f4285d17d3a5ae42e2811005dbcd4818d5d6ebe (patch) | |
tree | 9e368f937d297b11bdb0ed31ede4a762ba9f17ba /mm/kmemleak.c | |
parent | bfdaa39f42e6f7b364f3c499af9a67b1d8186c8b (diff) | |
download | linux-stable-2f4285d17d3a5ae42e2811005dbcd4818d5d6ebe.tar.gz linux-stable-2f4285d17d3a5ae42e2811005dbcd4818d5d6ebe.tar.bz2 linux-stable-2f4285d17d3a5ae42e2811005dbcd4818d5d6ebe.zip |
Staging: silicom: fix dangerous if condition in bpctl_mod.c
checkpatch script returns the following warning:
ERROR: do not use assignment in if condition
+ if (((dev_num = get_dev_idx(dev->ifindex)) ==
-1) |
This patch fixes the if condition by splitting it.
Signed-off-by: Neil Armstrong <superna9999@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/kmemleak.c')
0 files changed, 0 insertions, 0 deletions