diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2021-05-27 15:25:32 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2024-11-12 17:25:28 +0000 |
| commit | 93f7a3023c3147d42dbe3dab58a5a70779587ea5 (patch) | |
| tree | 1f669f48181293e914c731bb2be68b1512ebb55f /sys/dev/netmap/netmap_kloop.c | |
| parent | 65b20771713c7ec4d46fb5af4a16353209658d79 (diff) | |
style.9: be explicit about booleans in comparisons
We prefer something like "if (count != 0)" over "if (count)" for
non-boolean variables. This was implicit in examples, but was unclear
for some new contributors. Attempt to clarify by providing a more
explicit statement and example.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30507
Diffstat (limited to 'sys/dev/netmap/netmap_kloop.c')
0 files changed, 0 insertions, 0 deletions
