drivers/staging/rtl8712/rtl871x_recv.h:244]: (error) Uninitialized variable: buf_desc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

I just ran the static analyser cppcheck over the source code of the
linux kernel version 3.7-rc1

It said

[linux-3.6.1/drivers/staging/rtl8712/rtl871x_recv.h:244]: (error) Uninitialized
variable: buf_desc

The source code is

static inline _buffer *get_rxbuf_desc(union recv_frame *precvframe)
{
    _buffer *buf_desc;
    if (precvframe == NULL)
        return NULL;
    return buf_desc;
}

Either there is some missing code there, or the routine is a candidate
for deletion.

Regards
David Binderman

 		 	   		  
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux