Tag: 43baa5bb26298e8e268056c58900098ce8454548

drivers/net/wireless/libertas: move a dereference below a NULL test

Author: Julia Lawall <julia@diku.dk> In each case, if the NULL test is necessary, then the dereference should be moved below the NULL test. I have also taken advantage of the availability of the value of priv->dev in the subsequent calls to netif_stop_queue and netif_carrier_off. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) …

Continue reading