2014-11-29 13:35:06

by Anjana Sasindran

[permalink] [raw]
Subject: [PATCH] staging:drivers:staging:ft1000:ft1000_pcmcia:ft1000_hw.c:Added a blank line after declaration

This patch fix the checkpatch.pl warning

WARNING: Missing a blank line after declaration

Signed-off-by: Anjana Sasindran <[email protected]>
---
drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
index 11dbe36..d5475b7 100644
--- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
+++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
@@ -2042,6 +2042,7 @@ static void ft1000_get_drvinfo(struct net_device *dev,
static u32 ft1000_get_link(struct net_device *dev)
{
struct ft1000_info *info;
+
info = netdev_priv(dev);
return info->mediastate;
}
--
1.9.1


2014-11-29 13:40:24

by Belisko Marek

[permalink] [raw]
Subject: Re: [PATCH] staging:drivers:staging:ft1000:ft1000_pcmcia:ft1000_hw.c:Added a blank line after declaration

Hi Anjana,

please update subject to something like staging: ft1000: ....

Marek


On Sat, Nov 29, 2014 at 2:34 PM, Anjana Sasindran
<[email protected]> wrote:
> This patch fix the checkpatch.pl warning
>
> WARNING: Missing a blank line after declaration
>
> Signed-off-by: Anjana Sasindran <[email protected]>
> ---
> drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
> index 11dbe36..d5475b7 100644
> --- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
> +++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
> @@ -2042,6 +2042,7 @@ static void ft1000_get_drvinfo(struct net_device *dev,
> static u32 ft1000_get_link(struct net_device *dev)
> {
> struct ft1000_info *info;
> +
> info = netdev_priv(dev);
> return info->mediastate;
> }
> --
> 1.9.1
>



--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com