summaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-08-16 23:46:57 +0200
committerDavid S. Miller <davem@davemloft.net>2012-08-20 11:33:21 +0200
commit623d896b361f404de5ed24e312a58646ee04207d (patch)
tree97096e564b13dd8a91bbf19ec58ee7e29e1133fe /drivers/net/irda
parentdrivers/net/wimax/i2400m/fw.c: fix error return code (diff)
downloadlinux-623d896b361f404de5ed24e312a58646ee04207d.tar.xz
linux-623d896b361f404de5ed24e312a58646ee04207d.zip
drivers/net/wan/dscc4.c: fix error return code
Move up the initialization of rc so that failure of pci_alloc_consistent returns -ENOMEM as well. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ identifier ret; expression e1,e2; @@ if (ret < 0) { ... return ret; } ... when != ret = e1 when forall *if(...) { ... when != ret = e2 * return ret; } // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda')
0 files changed, 0 insertions, 0 deletions