lkml.org 
[lkml]   [2016]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 14/15] staging: wlang-ng: fix line style warnings in prism2sta.c
From
Date
On Mon, 2016-10-03 at 18:04 +0200, Sergio Paracuellos wrote:
> This patch fix the following checkpatch.pl warnings in prism2sta.c:
> WARNING: line over 80 characters
[]
> diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c
[]
> @@ -1099,7 +1101,8 @@ static void prism2sta_inf_hostscanresults(struct wlandevice *wlandev,
>  
>   kfree(hw->scanresults);
>  
> - hw->scanresults = kmemdup(inf, sizeof(struct hfa384x_InfFrame), GFP_ATOMIC);
> + hw->scanresults = kmemdup(inf,
> + sizeof(struct hfa384x_InfFrame), GFP_ATOMIC);

Perhaps better as

hw->scanresults = kmemdup(inf, sizeof(*inf), GFP_ATOMIC);

\
 
 \ /
  Last update: 2016-10-03 18:16    [W:0.222 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site