]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: remove unneeded conversion to bool in __mark_reg_unknown
authorZou Wei <zou_wei@huawei.com>
Mon, 13 Apr 2020 11:57:56 +0000 (19:57 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 14 Apr 2020 19:40:06 +0000 (21:40 +0200)
commitcc9aabba9df1934b480e8af2a4fb1b0240c7bada
treef72000dd6eece4b474b47754752c5ccd038b9637
parentd03528356947485811fb2e5153744355ac500acd
bpf: remove unneeded conversion to bool in __mark_reg_unknown

This issue was detected by using the Coccinelle software:

  kernel/bpf/verifier.c:1259:16-21: WARNING: conversion to bool not needed here

The conversion to bool is unneeded, remove it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/1586779076-101346-1-git-send-email-zou_wei@huawei.com
kernel/bpf/verifier.c