Do not special case ENOMEM as an error code, we should free up
the packet for all errors.
err = self->notify.udata_indication(self->notify.instance,
self,skb);
/* Same comment as in irttp_do_data_indication() */
- if (err != -ENOMEM)
+ if (!err)
return 0;
}
- /* Either no handler, or -ENOMEM */
+ /* Either no handler, or handler returns an error */
dev_kfree_skb(skb);
return 0;
* be difficult, so it can instead just refuse to eat it and just
* give an error back
*/
- if (err == -ENOMEM) {
+ if (err) {
IRDA_DEBUG(0, "%s() requeueing skb!\n", __FUNCTION__);
/* Make sure we take a break */