]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, i386: Remove unneeded conversion to bool
authorJason Yan <yanaijie@huawei.com>
Wed, 6 May 2020 14:03:52 +0000 (22:03 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 7 May 2020 14:29:14 +0000 (16:29 +0200)
commit10a41ab20b8d3f2589ba337c3c0002c63136b3eb
tree576b2f65ac73f8f54831145d5fd9f4d17bc6e24d
parentca9c824839836fc6915e3f95ad5db8e59a111941
bpf, i386: Remove unneeded conversion to bool

The '==' expression itself is bool, no need to convert it to bool again.
This fixes the following coccicheck warning:

  arch/x86/net/bpf_jit_comp32.c:1478:50-55: WARNING: conversion to bool not needed here
  arch/x86/net/bpf_jit_comp32.c:1479:50-55: WARNING: conversion to bool not needed here

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200506140352.37154-1-yanaijie@huawei.com
arch/x86/net/bpf_jit_comp32.c