Skip to contentSkip to conversation

uwb: fix brace coding style issue in drp-ie.c

PATCH New Hugh Sipière 1 participant 1 message Dec 29, 2017 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uwb: fix brace coding style issue in drp-ie.c

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

---
 drivers/uwb/drp-ie.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/uwb/drp-ie.c +1 -2
index b7d4f6b75eef..8681ee22bb77 100644
@@ -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;
 }