Skip to content

libbpf: remove unneeded conversion to bool #2198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

kernel-patches-bot
Copy link

Pull request for series with
subject: libbpf: remove unneeded conversion to bool
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=585571

@kernel-patches-bot
Copy link
Author

@kernel-patches-bot
Copy link
Author

Nobody and others added 2 commits November 25, 2021 14:48
The coccinelle report
./tools/lib/bpf/libbpf.c:1644:43-48:
WARNING: conversion to bool not needed here
Relational and logical operators evaluate to bool,
explicit conversion is overly verbose and unneeded.

Reported-by: Zeal Robot <[email protected]>
Signed-off-by: Yang Guang <[email protected]>
@kernel-patches-bot
Copy link
Author

@kernel-patches-bot
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=585571 irrelevant now. Closing PR.

@kernel-patches-bot kernel-patches-bot deleted the series/585571=>bpf-next branch November 25, 2021 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant