Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1416890 > unrolled thread

Re: [PATCH] Staging: unisys: visorhba: visorhba_main: fixed a coding style issue

Started byGreg KH <gregkh@linuxfoundation.org>
First post2016-06-08 08:10 +0200
Last post2016-06-08 08:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] Staging: unisys: visorhba: visorhba_main: fixed a coding  style issue Greg KH <gregkh@linuxfoundation.org> - 2016-06-08 08:10 +0200

#1416890 — Re: [PATCH] Staging: unisys: visorhba: visorhba_main: fixed a coding style issue

FromGreg KH <gregkh@linuxfoundation.org>
Date2016-06-08 08:10 +0200
SubjectRe: [PATCH] Staging: unisys: visorhba: visorhba_main: fixed a coding style issue
Message-ID<rHEQF-4Jt-11@gated-at.bofh.it>
On Sat, May 21, 2016 at 12:30:46AM +0530, Rumesh Hapuarachchi wrote:
> fixed checkpatch.pl warning about 'Prefer 'unsigned int' to bare use of 'unsigned'
> 
> Signed-off-by: Rumesh Hapuarahcchi <rehrumesh@gmail.com>
> ---
>  drivers/staging/unisys/visorhba/visorhba_main.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/unisys/visorhba/visorhba_main.c b/drivers/staging/unisys/visorhba/visorhba_main.c
> index 6a4570d..3b69b33 100644
> --- a/drivers/staging/unisys/visorhba/visorhba_main.c
> +++ b/drivers/staging/unisys/visorhba/visorhba_main.c
> @@ -1122,9 +1122,9 @@ static int visorhba_probe(struct visor_device *dev)
>  	if (err < 0)
>  		goto err_scsi_host_put;
>  
> -	scsihost->max_id = (unsigned)max.max_id;
> -	scsihost->max_lun = (unsigned)max.max_lun;
> -	scsihost->cmd_per_lun = (unsigned)max.cmd_per_lun;
> +	scsihost->max_id = (unsigned int)max.max_id;
> +	scsihost->max_lun = (unsigned int)max.max_lun;
> +	scsihost->cmd_per_lun = (unsigned int)max.cmd_per_lun;
>  	scsihost->max_sectors =
>  	    (unsigned short)(max.max_io_size >> 9);
>  	scsihost->sg_tablesize =

Someone else sent this patch for this issue before you did, sorry :(

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web