public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Minor coding style fix
@ 2006-10-08 15:06 Aneesh Kumar K.V
  2006-10-08 15:29 ` Jesper Juhl
  0 siblings, 1 reply; 7+ messages in thread
From: Aneesh Kumar K.V @ 2006-10-08 15:06 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 103 bytes --]

Kernel generally follow the style 

if (func()) {
/* failed case */
} else {
/* success */
}


-aneesh

[-- Attachment #2: sys.c.diff --]
[-- Type: text/x-patch, Size: 366 bytes --]

diff --git a/kernel/sys.c b/kernel/sys.c
index 98489d8..55cb77c 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -517,7 +517,7 @@ EXPORT_SYMBOL_GPL(srcu_notifier_call_cha
 void srcu_init_notifier_head(struct srcu_notifier_head *nh)
 {
 	mutex_init(&nh->mutex);
-	if (init_srcu_struct(&nh->srcu) < 0)
+	if (init_srcu_struct(&nh->srcu))
 		BUG();
 	nh->head = NULL;
 }

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] minor coding style fix
@ 2017-03-27 14:34 sfaragnaus
  2017-03-29  7:18 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 7+ messages in thread
From: sfaragnaus @ 2017-03-27 14:34 UTC (permalink / raw)
  To: Arnaud Patard, Greg Kroah-Hartman, devel, linux-kernel

This patch fix a minor coding style issue.

Signed-off-by: sfaragnaus <sfaragnaus@gmail.com>
---
 drivers/staging/xgifb/XGI_main_26.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c
index d938da3..b450c74 100644
--- a/drivers/staging/xgifb/XGI_main_26.c
+++ b/drivers/staging/xgifb/XGI_main_26.c
@@ -879,6 +879,7 @@ static void XGIfb_post_setmode(struct xgifb_video_info *xgifb_info)
 
 			if ((filter >= 0) && (filter <= 7)) {
 				const u8 *f = XGI_TV_filter[filter_tb].filter[filter];
+
 				pr_debug("FilterTable[%d]-%d: %*ph\n",
 					 filter_tb, filter, 4, f);
 				xgifb_reg_set(XGIPART2, 0x35, f[0]);
-- 
2.4.10

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-29  7:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-08 15:06 [PATCH] Minor coding style fix Aneesh Kumar K.V
2006-10-08 15:29 ` Jesper Juhl
2006-10-08 15:42   ` Jan Engelhardt
2006-10-08 17:18   ` Aneesh Kumar K.V
2006-10-09 14:39     ` Stefan Richter
  -- strict thread matches above, loose matches on Subject: below --
2017-03-27 14:34 [PATCH] minor " sfaragnaus
2017-03-29  7:18 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox