Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1273
b: refs/heads/master
c: 4b40033
h: refs/heads/master
i:
  1271: 79ed23a
v: v3
  • Loading branch information
Domen Puncer authored and David S. Miller committed May 15, 2005
1 parent b52cc79 commit 844ce8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4dbc30fb27ac4e647e6efadb382ff7d38c3d368e
refs/heads/master: 4b40033ef110b833986c1a1d958a951b695f9fbc
8 changes: 2 additions & 6 deletions trunk/drivers/sbus/char/aurora.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ unsigned char irqs[4] = {
int irqhit=0;
#endif

#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif

static struct tty_driver *aurora_driver;
static struct Aurora_board aurora_board[AURORA_NBOARD] = {
{0,},
Expand Down Expand Up @@ -594,7 +590,7 @@ static void aurora_transmit(struct Aurora_board const * bp, int chip)
&bp->r[chip]->r[CD180_TDR]);
port->COR2 &= ~COR2_ETC;
}
count = MIN(port->break_length, 0xff);
count = min(port->break_length, 0xff);
sbus_writeb(CD180_C_ESC,
&bp->r[chip]->r[CD180_TDR]);
sbus_writeb(CD180_C_DELAY,
Expand Down Expand Up @@ -1575,7 +1571,7 @@ static int aurora_write(struct tty_struct * tty,
save_flags(flags);
while (1) {
cli();
c = MIN(count, MIN(SERIAL_XMIT_SIZE - port->xmit_cnt - 1,
c = min(count, min(SERIAL_XMIT_SIZE - port->xmit_cnt - 1,
SERIAL_XMIT_SIZE - port->xmit_head));
if (c <= 0) {
restore_flags(flags);
Expand Down

0 comments on commit 844ce8f

Please sign in to comment.