Re: [PATCH] staging/wlan-ng: Fixing "line over 80 characters" warnings.

From: Greg Kroah-Hartman
Date: Sun Jul 21 2019 - 05:31:26 EST


On Sun, Jul 21, 2019 at 11:13:26AM +0200, Hennie Muller wrote:
> Reindent multiline function calls to be tab aligned, instead of open brace
> aligned. This fixes multiple "WARNING: line over 80 characters" generated
> by checkpatch.
>
> Signed-off-by: Hennie Muller <hm@xxxxxxxxxxxxx>
> ---
> drivers/staging/wlan-ng/cfg80211.c | 55 ++---
> drivers/staging/wlan-ng/hfa384x_usb.c | 282 +++++++++++++-------------
> drivers/staging/wlan-ng/p80211conv.c | 48 +++--
> drivers/staging/wlan-ng/p80211req.c | 6 +-
> drivers/staging/wlan-ng/prism2fw.c | 101 +++++----
> drivers/staging/wlan-ng/prism2mgmt.c | 170 ++++++++--------
> drivers/staging/wlan-ng/prism2mib.c | 14 +-
> drivers/staging/wlan-ng/prism2sta.c | 282 +++++++++++++-------------
> drivers/staging/wlan-ng/prism2usb.c | 13 +-
> 9 files changed, 494 insertions(+), 477 deletions(-)
>
> diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
> index eee1998c4b18..c69fb83267ef 100644
> --- a/drivers/staging/wlan-ng/cfg80211.c
> +++ b/drivers/staging/wlan-ng/cfg80211.c
> @@ -130,8 +130,8 @@ static int prism2_change_virtual_intf(struct wiphy *wiphy,
>
> /* Set Operation mode to the PORT TYPE RID */
> result = prism2_domibset_uint32(wlandev,
> - DIDMIB_P2_STATIC_CNFPORTTYPE,
> - data);
> + DIDMIB_P2_STATIC_CNFPORTTYPE,
> + data);

This then violates another checkpatch warning, so you can't win :(

Just leave it as-is, it's fine, right? Coding styles are there to make
things easy to read and understand, and the code is fine like this.

So don't move arguments to the left of the '(' character on the line
above please.

thanks,

greg k-h