]> git.baikalelectronics.ru Git - kernel.git/commit
atm: iphase: return -ENOMEM instead of -1 in case of failed kmalloc()
authorTillmann Heidsieck <theidsieck@leenox.de>
Sat, 10 Oct 2015 19:47:18 +0000 (21:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 02:56:26 +0000 (19:56 -0700)
commit90d7679afad6e032cee8c7a4e03a4e4ce3b8b3c2
treebf9fe0215bbe80eeb72d59ed7416229127e75d82
parent556c901c7ebab6f20fdf5703ebeae65051f240a0
atm: iphase: return -ENOMEM instead of -1 in case of failed kmalloc()

Smatch complains about returning hard coded error codes, silence this
warning.

drivers/atm/iphase.c:115 ia_enque_rtn_q() warn: returning -1 instead of -ENOMEM is sloppy

Signed-off-by: Tillmann Heidsieck <theidsieck@leenox.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/iphase.c