* [Outreachy Kernel][PATCH] First clean-up patch
@ 2019-03-04 14:58 Daniela Mormocea
2019-03-04 15:01 ` [Outreachy kernel] " Julia Lawall
0 siblings, 1 reply; 2+ messages in thread
From: Daniela Mormocea @ 2019-03-04 14:58 UTC (permalink / raw)
To: outreachy-kernel
Fixed alignment issue with parenthesis.
Signed-off-by: Daniela Mormocea <daniela.mormocea@gmail.com>
---
drivers/staging/wlan-ng/cfg80211.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index 8a862f7..7c4e8f1f8 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -332,8 +332,7 @@ static int prism2_scan(struct wiphy *wiphy,
(i < request->n_channels) && i < ARRAY_SIZE(prism2_channels);
i++)
msg1.channellist.data.data[i] =
- ieee80211_frequency_to_channel(
- request->channels[i]->center_freq);
+ ieee80211_frequency_to_channel(request->channels[i]->center_freq);
msg1.channellist.data.len = request->n_channels;
msg1.maxchanneltime.data = 250;
@@ -372,11 +371,9 @@ static int prism2_scan(struct wiphy *wiphy,
(const u8 *)&msg2.bssid.data.data,
msg2.timestamp.data, msg2.capinfo.data,
msg2.beaconperiod.data,
- ie_buf,
- ie_len,
+ ie_buf, ie_len,
(msg2.signal.data - 65536) * 100, /* Conversion to signed type */
- GFP_KERNEL
- );
+ GFP_KERNEL);
if (!bss) {
err = -ENOMEM;
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [Outreachy kernel] [Outreachy Kernel][PATCH] First clean-up patch
2019-03-04 14:58 [Outreachy Kernel][PATCH] First clean-up patch Daniela Mormocea
@ 2019-03-04 15:01 ` Julia Lawall
0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2019-03-04 15:01 UTC (permalink / raw)
To: Daniela Mormocea; +Cc: outreachy-kernel
Please go back and read the tutorial about how to create a subject line.
The subject line will end up part of the git history, so its form is
important.
On Mon, 4 Mar 2019, Daniela Mormocea wrote:
> Fixed alignment issue with parenthesis.
The log message should be in the imperative. So Fix instead of Fixed.
Also it should say what you did and why. Fix somehow describes the impact
that you hope to have, but it doesn't really say concretely what you did.
julia
> Signed-off-by: Daniela Mormocea <daniela.mormocea@gmail.com>
> ---
> drivers/staging/wlan-ng/cfg80211.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
> index 8a862f7..7c4e8f1f8 100644
> --- a/drivers/staging/wlan-ng/cfg80211.c
> +++ b/drivers/staging/wlan-ng/cfg80211.c
> @@ -332,8 +332,7 @@ static int prism2_scan(struct wiphy *wiphy,
> (i < request->n_channels) && i < ARRAY_SIZE(prism2_channels);
> i++)
> msg1.channellist.data.data[i] =
> - ieee80211_frequency_to_channel(
> - request->channels[i]->center_freq);
> + ieee80211_frequency_to_channel(request->channels[i]->center_freq);
> msg1.channellist.data.len = request->n_channels;
>
> msg1.maxchanneltime.data = 250;
> @@ -372,11 +371,9 @@ static int prism2_scan(struct wiphy *wiphy,
> (const u8 *)&msg2.bssid.data.data,
> msg2.timestamp.data, msg2.capinfo.data,
> msg2.beaconperiod.data,
> - ie_buf,
> - ie_len,
> + ie_buf, ie_len,
> (msg2.signal.data - 65536) * 100, /* Conversion to signed type */
> - GFP_KERNEL
> - );
> + GFP_KERNEL);
>
> if (!bss) {
> err = -ENOMEM;
> --
> 2.7.4
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190304145801.GA28407%40pthm.
> For more options, visit https://groups.google.com/d/optout.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-04 15:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-04 14:58 [Outreachy Kernel][PATCH] First clean-up patch Daniela Mormocea
2019-03-04 15:01 ` [Outreachy kernel] " Julia Lawall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.