Skip to content

Commit

Permalink
drivers/net/wan/sbni: kill uninit'd var warning
Browse files Browse the repository at this point in the history
It's actually convenient in the code to initialize this and a sister
variable to zero.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Jeff Garzik committed Jul 17, 2007
1 parent 2ab934b commit e5fb4f4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/net/wan/sbni.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,17 +595,16 @@ recv_frame( struct net_device *dev )

u32 crc = CRC32_INITIAL;

unsigned framelen, frameno, ack;
unsigned is_first, frame_ok;
unsigned framelen = 0, frameno, ack;
unsigned is_first, frame_ok = 0;

if( check_fhdr( ioaddr, &framelen, &frameno, &ack, &is_first, &crc ) ) {
frame_ok = framelen > 4
? upload_data( dev, framelen, frameno, is_first, crc )
: skip_tail( ioaddr, framelen, crc );
if( frame_ok )
interpret_ack( dev, ack );
} else
frame_ok = 0;
}

outb( inb( ioaddr + CSR0 ) ^ CT_ZER, ioaddr + CSR0 );
if( frame_ok ) {
Expand Down

0 comments on commit e5fb4f4

Please sign in to comment.