Re: [PATCH] Staging: rtl8192e prohibit deferencing of NULL pointer

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

 



On Wed, Jun 18, 2014 at 11:16 AM, Andreas Platschek
<platschek@xxxxxxxxxxxxxxxx> wrote:
>
>   rx_dropped:
> -    ieee->stats.rx_dropped++;
> +    if (ieee != NULL) {
> +        ieee->stats.rx_dropped++;
> +    }
>      return 0;

Style nit: don't use braces around a single statement.

Tina
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-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