mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] uwb: fix brace coding style issue in drp-ie.c
@ 2017-12-29 20:55 Hugh Sipière
  0 siblings, 0 replies; only message in thread
From: Hugh Sipière @ 2017-12-29 20:55 UTC (permalink / raw)
  To: linux-usb; +Cc: linux-kernel, Hugh Sipière

The coding style doesn't use braces if a single statment will do. In
this case we can get rid of the braces.

Signed-off-by: Hugh Sipière <hgsipiere@gmail.com>
---
 drivers/uwb/drp-ie.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/uwb/drp-ie.c b/drivers/uwb/drp-ie.c
index b7d4f6b75eef..8681ee22bb77 100644
--- a/drivers/uwb/drp-ie.c
+++ b/drivers/uwb/drp-ie.c
@@ -128,9 +128,8 @@ static struct uwb_ie_drp *uwb_drp_ie_alloc(void)
 	drp_ie = kzalloc(sizeof(struct uwb_ie_drp) +
 			UWB_NUM_ZONES * sizeof(struct uwb_drp_alloc),
 			GFP_KERNEL);
-	if (drp_ie) {
+	if (drp_ie)
 		drp_ie->hdr.element_id = UWB_IE_DRP;
-	}
 	return drp_ie;
 }
 
-- 
2.15.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-29 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-29 20:55 [PATCH] uwb: fix brace coding style issue in drp-ie.c Hugh Sipière

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

all inboxes | Powered by JetHome®