staging: lustre: align else if statement to coding standard
PATCH v3 1/1 staging: lustre: align else if statement to coding standard
- move logical continuations at the end of line
- move else if statement to a single line
- Replace spaces with tabstop.
--- drivers/staging/wlan-ng/prism2mgmt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/prism2mgmt.c +2 -4
@@ -1307,10 +1307,8 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp) && (msg->prismheader.data == P80211ENUM_truth_true)) { hw->sniffhdr =0 ; wlandev->netdev->type =ARPHRD_IEEE80211_PRISM ; - } else - if ((msg->wlanheader.status == - P80211ENUM_msgitem_status_data_ok) - && (msg->wlanheader.data == P80211ENUM_truth_true)) { + } else if ((msg->wlanheader.status == P80211ENUM_msgitem_status_data_ok) && + (msg->wlanheader.data == P80211ENUM_truth_true)) { hw->sniffhdr =1 ; wlandev->netdev->type =ARPHRD_IEEE80211_PRISM ; } else {
Signature · 1 line
2.1.4
Greg Kroah-Hartman
maintainerQuoted 3 lines · Maksymilian Piechota
- move logical continuations at the end of line
- move else if statement to a single line
- Replace spaces with tabstop.
That's a lot of different things, happening all at once. Please break this up into multiple patches, each one only doing one thing, and send a patch series.
thanks,
greg k-h
Quoted 5 lines · Greg Kroah-Hartman
Quoted 3 lines · Maksymilian Piechota
- move logical continuations at the end of line
- move else if statement to a single line
- Replace spaces with tabstop.
Quoted 7 lines
That's a lot of different things, happening all at once. Please break this up into multiple patches, each one only doing one thing, and send a patch series.
thanks,
greg k-h
Fixing two lines of code in three patches?
Greg Kroah-Hartman
maintainerQuoted 10 lines · Maksymilian Piechota
Quoted 9 lines · Greg Kroah-Hartman
Quoted 3 lines · Maksymilian Piechota
- move logical continuations at the end of line
- move else if statement to a single line
- Replace spaces with tabstop.That's a lot of different things, happening all at once. Please break this up into multiple patches, each one only doing one thing, and send a patch series.
Quoted 5 lines
Quoted 3 lines
thanks,
greg k-h
Fixing two lines of code in three patches?
Yes.
Quoted 11 lines · Greg Kroah-Hartman
Quoted 10 lines · Maksymilian Piechota
Quoted 9 lines · Greg Kroah-Hartman
Quoted 3 lines · Maksymilian Piechota
- move logical continuations at the end of line
- move else if statement to a single line
- Replace spaces with tabstop.That's a lot of different things, happening all at once. Please break this up into multiple patches, each one only doing one thing, and send a patch series.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
thanks,
greg k-h
Fixing two lines of code in three patches?
Yes.
Greg is also sometimes completely crazy.
I think he's only doing this because you are a relatively new patch submitter and he wants you to go through some linux-kernel process hazing.
It'd be more efficient as a single patch and better overall to avoid descriptions with multiple characteristics that elicit Greg's somewhat OCD reflexes.
If this commit log was merely described as "use a normal kernel style" for the else if and nothing else was mentioned, this would likely have been accepted.