Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fb91d11 authored by Johannes Schilling's avatar Johannes Schilling Committed by Greg Kroah-Hartman
Browse files

keucr: use more specific max_t(int, ..



as advised by checkpatch, changed generic max(..) to max_t(int, ..

Signed-off-by: default avatarLaura Lawniczak <laura.lawniczak@googlemail.com>
Signed-off-by: default avatarJohannes Schilling <of82ecuq@cip.cs.fau.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8be88040
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -708,8 +708,8 @@ int usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us)


		} else {
		} else {
			residue = min(residue, transfer_length);
			residue = min(residue, transfer_length);
			scsi_set_resid(srb, max(scsi_get_resid(srb),
			scsi_set_resid(srb, max_t(int, scsi_get_resid(srb),
							(int) residue));
							residue));
		}
		}
	}
	}