From d05b25b97c6444fc3db4f9f70d7edbdb754a2e1a Mon Sep 17 00:00:00 2001 From: Devendra Naga Date: Thu, 1 Nov 2012 02:24:35 -0400 Subject: [PATCH] staging: csr: inet.c: single statement if blocks doesn't need braces remove braces to single statement if blocks Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- drivers/staging/csr/inet.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/csr/inet.c b/drivers/staging/csr/inet.c index b4acb54ecc62..850620617571 100644 --- a/drivers/staging/csr/inet.c +++ b/drivers/staging/csr/inet.c @@ -93,14 +93,12 @@ static struct notifier_block uf_inetaddr_notifier = { void uf_register_inet_notifier(void) { - if (atomic_inc_return(&inet_notif_refs) == 1) { + if (atomic_inc_return(&inet_notif_refs) == 1) register_inetaddr_notifier(&uf_inetaddr_notifier); - } } void uf_unregister_inet_notifier(void) { - if (atomic_dec_return(&inet_notif_refs) == 0) { + if (atomic_dec_return(&inet_notif_refs) == 0) unregister_inetaddr_notifier(&uf_inetaddr_notifier); - } } -- 2.39.5