keucr: use more specific max_t(int, ..
authorJohannes Schilling <of82ecuq@cip.cs.fau.de>
Thu, 6 Jun 2013 16:10:46 +0000 (18:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 18:48:49 +0000 (11:48 -0700)
as advised by checkpatch, changed generic max(..) to max_t(int, ..

Signed-off-by: Laura Lawniczak <laura.lawniczak@googlemail.com>
Signed-off-by: Johannes Schilling <of82ecuq@cip.cs.fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/keucr/transport.c

index 1a8837df0766e326f8d81eea33252250db20a733..ab1eccdee583d536b74d40e45268babacaad28de 100644 (file)
@@ -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),
+                                                       residue));
                }
        }