From: Hugh Sipière Date: Fri, 29 Dec 2017 20:55:42 +0000 (+0000) Subject: uwb: fix brace coding style issue in drp-ie.c X-Git-Tag: v4.16-rc1~114^2~53 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8206948c91963c3f5698a3341337a1c6550df2ad;p=users%2Fjedix%2Flinux-maple.git 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. Signed-off-by: Hugh Sipière Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/uwb/drp-ie.c b/drivers/uwb/drp-ie.c index b7d4f6b75eefe..8681ee22bb777 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; }