Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1245301

Re: [PATCH 1/2] atm: iphase: return -ENOMEM instead of -1 in case of failed kmalloc()

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] atm: iphase: return -ENOMEM instead of -1 in case of failed kmalloc()
Date 2015-10-13 04:50 +0200
Message-ID <qiXP3-1wY-5@gated-at.bofh.it> (permalink)
References <qi8jw-2fO-9@gated-at.bofh.it> <qi8jw-2fO-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Tillmann Heidsieck <theidsieck@leenox.de>
Date: Sat, 10 Oct 2015 21:47:18 +0200

> 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>

Applied to net-next.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] atm: iphase: Fix misleading indention and return -ENOMEM on error Tillmann Heidsieck <theidsieck@leenox.de> - 2015-10-10 21:50 +0200
  [PATCH 1/2] atm: iphase: return -ENOMEM instead of -1 in case of failed kmalloc() Tillmann Heidsieck <theidsieck@leenox.de> - 2015-10-10 21:50 +0200
    Re: [PATCH 1/2] atm: iphase: return -ENOMEM instead of -1 in case  of failed kmalloc() David Miller <davem@davemloft.net> - 2015-10-13 04:50 +0200
  Re: [PATCH 0/2] atm: iphase: Fix misleading indention and return  -ENOMEM on error "Charles (Chas) Williams" <3chas3@gmail.com> - 2015-10-12 17:30 +0200

csiph-web