Skip to content

Commit ade0a79

Browse files
Rick Farringtondavem330
authored andcommitted
liquidio: standardization: use min_t instead of custom macro
Signed-off-by: Rick Farrington <[email protected]> Signed-off-by: Derek Chickles <[email protected]> Signed-off-by: Felix Manlunas <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fb5e760 commit ade0a79

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/cavium/liquidio/octeon_console.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ module_param(console_bitmask, int, 0644);
4242
MODULE_PARM_DESC(console_bitmask,
4343
"Bitmask indicating which consoles have debug output redirected to syslog.");
4444

45-
#define MIN(a, b) min((a), (b))
4645
#define CAST_ULL(v) ((u64)(v))
4746

4847
#define BOOTLOADER_PCI_READ_BUFFER_DATA_ADDR 0x0006c008
@@ -704,7 +703,7 @@ static int octeon_console_read(struct octeon_device *oct, u32 console_num,
704703
if (bytes_to_read <= 0)
705704
return bytes_to_read;
706705

707-
bytes_to_read = MIN(bytes_to_read, (s32)buf_size);
706+
bytes_to_read = min_t(s32, bytes_to_read, buf_size);
708707

709708
/* Check to see if what we want to read is not contiguous, and limit
710709
* ourselves to the contiguous block

0 commit comments

Comments
 (0)