lkml.org 
[lkml]   [2019]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3] Staging: wfx: Fix style issues with hif_rx.c
From
Date
On Sun, 2019-12-29 at 17:31 -0500, Matthew Hanzelik wrote:
> Fix the 80 line limit warning on line 79 of hif_rx.c.
>
> Also fixes the missing blank line warning on line 305 of hif_rx.c after
> the declaration of size_t len.
[]
> diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c
[]
> @@ -76,7 +76,8 @@ static int hif_multi_tx_confirm(struct wfx_dev *wdev, struct hif_msg *hif,
> void *buf)
> {
> struct hif_cnf_multi_transmit *body = buf;
> - struct hif_cnf_tx *buf_loc = (struct hif_cnf_tx *) &body->tx_conf_payload;
> + struct hif_cnf_tx *buf_loc =
> + (struct hif_cnf_tx *) &body->tx_conf_payload;

Just get rid of the cast instead

struct hif_cnf_tx *buf_loc = body->tx_conf_payload;

should work fine.


\
 
 \ /
  Last update: 2019-12-29 23:53    [W:0.031 / U:2.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site