* [PATCH] staging: wfx: remove unneeded spaces
@ 2020-03-15 4:49 Lourdes Pedrajas
2020-03-17 12:45 ` [Outreachy kernel] " Stefano Brivio
0 siblings, 1 reply; 3+ messages in thread
From: Lourdes Pedrajas @ 2020-03-15 4:49 UTC (permalink / raw)
To: outreachy-kernel, gregkh, jerome.pouiller
Remove spaces after type casting operators in order to comply codding
standards.
Issue found with checkpatch.
Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
---
drivers/staging/wfx/queue.c | 2 +-
drivers/staging/wfx/sta.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c
index ed6dc8297738..39d9127ce4b9 100644
--- a/drivers/staging/wfx/queue.c
+++ b/drivers/staging/wfx/queue.c
@@ -540,7 +540,7 @@ struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)
skb = wfx_tx_queue_get(wdev, queue, tx_allowed_mask);
if (!skb)
continue;
- hif = (struct hif_msg *) skb->data;
+ hif = (struct hif_msg *)skb->data;
wvif = wdev_to_wvif(wdev, hif->interface);
WARN_ON(!wvif);
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c
index a60ac03fa73d..07a9991929fd 100644
--- a/drivers/staging/wfx/sta.c
+++ b/drivers/staging/wfx/sta.c
@@ -903,7 +903,7 @@ static void wfx_update_tim_work(struct work_struct *work)
int wfx_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, bool set)
{
struct wfx_dev *wdev = hw->priv;
- struct wfx_sta_priv *sta_dev = (struct wfx_sta_priv *) &sta->drv_priv;
+ struct wfx_sta_priv *sta_dev = (struct wfx_sta_priv *)&sta->drv_priv;
struct wfx_vif *wvif = wdev_to_wvif(wdev, sta_dev->vif_id);
schedule_work(&wvif->update_tim_work);
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Outreachy kernel] [PATCH] staging: wfx: remove unneeded spaces
2020-03-15 4:49 [PATCH] staging: wfx: remove unneeded spaces Lourdes Pedrajas
@ 2020-03-17 12:45 ` Stefano Brivio
2020-03-17 12:51 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Stefano Brivio @ 2020-03-17 12:45 UTC (permalink / raw)
To: Lourdes Pedrajas, gregkh; +Cc: outreachy-kernel, jerome.pouiller
On Sun, 15 Mar 2020 05:49:22 +0100
Lourdes Pedrajas <lu@pplo.net> wrote:
> Remove spaces after type casting operators in order to comply codding
with coding...
> standards.
>
> Issue found with checkpatch.
>
> Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
By the way, question for Greg:
> [...]
>
> index a60ac03fa73d..07a9991929fd 100644
> --- a/drivers/staging/wfx/sta.c
> +++ b/drivers/staging/wfx/sta.c
> @@ -903,7 +903,7 @@ static void wfx_update_tim_work(struct work_struct *work)
> int wfx_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, bool set)
> {
> struct wfx_dev *wdev = hw->priv;
> - struct wfx_sta_priv *sta_dev = (struct wfx_sta_priv *) &sta->drv_priv;
> + struct wfx_sta_priv *sta_dev = (struct wfx_sta_priv *)&sta->drv_priv;
> struct wfx_vif *wvif = wdev_to_wvif(wdev, sta_dev->vif_id);
Will this eventually have to conform to networking coding style? At
what point in time is this stuff checked, if at all?
--
Stefano
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Outreachy kernel] [PATCH] staging: wfx: remove unneeded spaces
2020-03-17 12:45 ` [Outreachy kernel] " Stefano Brivio
@ 2020-03-17 12:51 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2020-03-17 12:51 UTC (permalink / raw)
To: Stefano Brivio; +Cc: Lourdes Pedrajas, outreachy-kernel, jerome.pouiller
On Tue, Mar 17, 2020 at 01:45:05PM +0100, Stefano Brivio wrote:
> On Sun, 15 Mar 2020 05:49:22 +0100
> Lourdes Pedrajas <lu@pplo.net> wrote:
>
> > Remove spaces after type casting operators in order to comply codding
>
> with coding...
>
> > standards.
> >
> > Issue found with checkpatch.
> >
> > Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
>
> Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
>
> By the way, question for Greg:
>
> > [...]
> >
> > index a60ac03fa73d..07a9991929fd 100644
> > --- a/drivers/staging/wfx/sta.c
> > +++ b/drivers/staging/wfx/sta.c
> > @@ -903,7 +903,7 @@ static void wfx_update_tim_work(struct work_struct *work)
> > int wfx_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, bool set)
> > {
> > struct wfx_dev *wdev = hw->priv;
> > - struct wfx_sta_priv *sta_dev = (struct wfx_sta_priv *) &sta->drv_priv;
> > + struct wfx_sta_priv *sta_dev = (struct wfx_sta_priv *)&sta->drv_priv;
> > struct wfx_vif *wvif = wdev_to_wvif(wdev, sta_dev->vif_id);
>
> Will this eventually have to conform to networking coding style? At
> what point in time is this stuff checked, if at all?
When the maintainer wants it merged to the "real" part of the kernel,
that will be needed to be checked.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-17 12:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-15 4:49 [PATCH] staging: wfx: remove unneeded spaces Lourdes Pedrajas
2020-03-17 12:45 ` [Outreachy kernel] " Stefano Brivio
2020-03-17 12:51 ` Greg KH
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.