We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 529c657 commit f2ccb53Copy full SHA for f2ccb53
drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c
@@ -135,7 +135,7 @@ static void netup_i2c_fifo_tx(struct netup_i2c *i2c)
135
(readw(&i2c->regs->tx_fifo.stat_ctrl) & 0x3f);
136
u32 msg_length = i2c->msg->len - i2c->xmit_size;
137
138
- msg_length = (msg_length < fifo_space ? msg_length : fifo_space);
+ msg_length = min(msg_length, fifo_space);
139
while (msg_length--) {
140
data = i2c->msg->buf[i2c->xmit_size++];
141
writeb(data, &i2c->regs->tx_fifo.data8);
0 commit comments