All of
 help / color / mirror / Atom feed
From: CGEL <>
To: Michael Buesch <>,,
Cc: Jing Yangyang <>, Zeal Robot <>
Subject: [PATCH linux-next] include:ssb: fix boolreturn.cocci warnings
Date: Mon, 23 Aug 2021 23:13:41 -0700	[thread overview]
Message-ID: <> (raw)

From: Jing Yangyang <>

./include/linux/ssb/ssb_driver_extif.h:200:8-9:WARNING: return of 0/1 in
function 'ssb_extif_available' with return type bool

Return statements in functions returning bool should use true/false
instead of 1/0.

Generated by: scripts/coccinelle/misc/boolreturn.cocci

Reported-by: Zeal Robot <>
Signed-off-by: Jing Yangyang <>
 include/linux/ssb/ssb_driver_extif.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/ssb/ssb_driver_extif.h b/include/linux/ssb/ssb_driver_extif.h
index 3f8bc97..19253bf 100644
--- a/include/linux/ssb/ssb_driver_extif.h
+++ b/include/linux/ssb/ssb_driver_extif.h
@@ -197,7 +197,7 @@ struct ssb_extif {
 static inline bool ssb_extif_available(struct ssb_extif *extif)
-	return 0;
+	return false;
 static inline

             reply	other threads:[~2021-08-24  6:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24  6:13 CGEL [this message]
2021-08-29 11:48 ` [linux-next] ssb: fix boolreturn.cocci warning Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.