Modules/E1000 - (minor) Worked around dumb gcc warning
authorJohn Hodge (sonata) <[email protected]>
Wed, 8 May 2013 06:55:22 +0000 (14:55 +0800)
committerJohn Hodge (sonata) <[email protected]>
Wed, 8 May 2013 06:55:22 +0000 (14:55 +0800)
KernelLand/Modules/Network/E1000/e1000.c

index 66c1c86..68c020d 100644 (file)
@@ -383,7 +383,7 @@ int DrvUtil_AllocBuffers(void **Buffers, int NumBufs, int PhysBits, size_t BufSi
                size_t  ofs = 0;
                const int       bufs_per_page = PAGE_SIZE / BufSize;
                ASSERT(bufs_per_page * BufSize == PAGE_SIZE);
-               void    *page;
+               void    *page = NULL;
                for( int i = 0; i < NumBufs; i ++ )
                {
                        if( ofs == 0 ) {

UCC git Repository :: git.ucc.asn.au