Re: [PATCH] staging: vme: Fix a small coding style issue in vme_user.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Am 03.04.2014 00:24, schrieb Bojan Prtvar:
> The checkpatch.pl complains about missing blank line after declaration.
> This patch silence the warning.
> 
> Signed-off-by: Bojan Prtvar <prtvar.b@xxxxxxxxx>
> ---
>  This patch is for Eudyptula Challenge task 10
> 
>  drivers/staging/vme/devices/vme_user.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c
> index 7927927..481192a 100644
> --- a/drivers/staging/vme/devices/vme_user.c
> +++ b/drivers/staging/vme/devices/vme_user.c
> @@ -791,6 +791,7 @@ static int vme_user_probe(struct vme_dev *vdev)
>  	/* Add sysfs Entries */
>  	for (i = 0; i < VME_DEVS; i++) {
>  		int num;
> +
>  		switch (type[i]) {
>  		case MASTER_MINOR:
>  			sprintf(name, "bus/vme/m%%d");

beside style:
that sprint looks like as it could be replaced with a
 name="bus/vme/m%%d"

any takers ?

re,
 wh

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux