Commit 8206948c authored by Hugh Sipière's avatar Hugh Sipière Committed by Greg Kroah-Hartman

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: default avatarHugh Sipière <hgsipiere@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f514f97
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment