Commit e5fb4f42 authored by Jeff Garzik's avatar Jeff Garzik

drivers/net/wan/sbni: kill uninit'd var warning

It's actually convenient in the code to initialize this and a sister
variable to zero.
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 2ab934b8
...@@ -595,8 +595,8 @@ recv_frame( struct net_device *dev ) ...@@ -595,8 +595,8 @@ recv_frame( struct net_device *dev )
u32 crc = CRC32_INITIAL; u32 crc = CRC32_INITIAL;
unsigned framelen, frameno, ack; unsigned framelen = 0, frameno, ack;
unsigned is_first, frame_ok; unsigned is_first, frame_ok = 0;
if( check_fhdr( ioaddr, &framelen, &frameno, &ack, &is_first, &crc ) ) { if( check_fhdr( ioaddr, &framelen, &frameno, &ack, &is_first, &crc ) ) {
frame_ok = framelen > 4 frame_ok = framelen > 4
...@@ -604,8 +604,7 @@ recv_frame( struct net_device *dev ) ...@@ -604,8 +604,7 @@ recv_frame( struct net_device *dev )
: skip_tail( ioaddr, framelen, crc ); : skip_tail( ioaddr, framelen, crc );
if( frame_ok ) if( frame_ok )
interpret_ack( dev, ack ); interpret_ack( dev, ack );
} else }
frame_ok = 0;
outb( inb( ioaddr + CSR0 ) ^ CT_ZER, ioaddr + CSR0 ); outb( inb( ioaddr + CSR0 ) ^ CT_ZER, ioaddr + CSR0 );
if( frame_ok ) { if( frame_ok ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment