]> www.infradead.org Git - users/willy/xarray.git/commit
net: netconsole: Remove unnecessary cast from bool
authorBreno Leitao <leitao@debian.org>
Tue, 9 Jul 2024 14:43:59 +0000 (07:43 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 12 Jul 2024 01:32:48 +0000 (18:32 -0700)
commita9359e8b0065a76cc11791f668bce3e9c7bf4fef
treefc359197f4f9a35764dd2d8586fa144b8ea5fc37
parent5e724cb688a207ae7a348d57f9ea77f475998883
net: netconsole: Remove unnecessary cast from bool

The 'enabled' variable is already a bool, so casting it to its value
is redundant.

Remove the superfluous cast, improving code clarity without changing
functionality.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20240709144403.544099-2-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netconsole.c