On Thu, Jun 19, 2014 at 09:20:17PM +0200, Johannes Stadlinger wrote:
> This patch inserts blank lines after declarations to avoid checkpatch
> warning.
>
> After our fixes in 'wlan-ng/prism2mib.c' there are still two checkpatch
> warnings about lines over 80 characters remaining.
>
> Signed-off-by: Johannes Stadlinger <[email protected]>
> Signed-off-by: Maximilian Eschenbacher <[email protected]>
> CC: [email protected]
> CC: Greg Kroah-Hartman <[email protected]>
> CC: Josh Triplett <[email protected]>
> CC: Vitaly Osipov <[email protected]>
> CC: Himangi Saraogi <[email protected]>
> CC: [email protected]
> CC: [email protected]
> ---
> drivers/staging/wlan-ng/prism2mib.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/wlan-ng/prism2mib.c
> b/drivers/staging/wlan-ng/prism2mib.c
> index bdd3b4c..3ea24d6 100644
> --- a/drivers/staging/wlan-ng/prism2mib.c
> +++ b/drivers/staging/wlan-ng/prism2mib.c
> @@ -85,7 +85,8 @@ struct mibrec {
> u16 parm1;
> u16 parm2;
> u16 parm3;
> - int (*func) (struct mibrec *mib,
> +
> + int (*func)(struct mibrec *mib,
Eliminating the space here makes sense, but checkpatch shouldn't warn
about spaces after declarations between two fields in the middle of a
structure declaration.
> int isget,
> wlandevice_t *wlandev,
> hfa384x_t *hw,
> @@ -722,6 +723,7 @@ static int prism2mib_priv(struct mibrec *mib,
> switch (mib->did) {
> case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{
> hfa384x_WPAData_t wpa;
> +
> if (isget) {
> hfa384x_drvr_getconfig(hw,
> HFA384x_RID_CNFWPADATA,
> --
> 1.9.1
>
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel