Re: [PATCH 6/6] keucr: use more specific max_t(int, ..

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

 



On Wed, Jun 05, 2013 at 10:50:06AM +0200, Johannes Schilling wrote:
> --- a/drivers/staging/keucr/transport.c
> +++ b/drivers/staging/keucr/transport.c
> @@ -708,8 +708,8 @@ int usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us)
>  
>  		} else {
>  			residue = min(residue, transfer_length);
> -			scsi_set_resid(srb, max(scsi_get_resid(srb),
> -							(int) residue));
> +			scsi_set_resid(srb, max_t(int, scsi_get_resid(srb),
> +							(int)residue));
                                                        ^^^^^
This cast isn't needed any more when you use max_t.

regards,
dan carpenter


_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux