All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] staging: bcm2835-audio: fix coding style issues
@ 2017-03-06 15:02 Aishwarya Pant
  2017-03-06 15:02 ` [PATCH 1/4] staging: bcm2835-audio: Replace kmalloc with kzalloc Aishwarya Pant
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Aishwarya Pant @ 2017-03-06 15:02 UTC (permalink / raw)
  To: Stephen Warren, Lee Jones, Eric Anholt, Greg Kroah-Hartman,
	Florian Fainelli, Ray Jui, Scott Branden,
	bcm-kernel-feedback-list
  Cc: outreachy-kernel

This patchset makes the following changes:
	- Replace kmalloc and memset with kzalloc
	- Replace null return value with PTR_ERR values
	- Propagate the PTR_ERR values forward instead of a hardcoded
	  value for easier debugging
	- Replace if (success) else { } after kmalloc with if (error) to
	  fail fast.

Aishwarya Pant (4):
  staging: bcm2835-audio: Replace kmalloc with kzalloc
  staging: bcm2835-audio: replace null with error pointer value
  staging: bcm2835-audio: propagate PTR_ERR value instead of -EPERM
  staging: bcm2835-audio: use conditional only for error case

 .../vc04_services/bcm2835-audio/bcm2835-vchiq.c    | 59 +++++++++++-----------
 1 file changed, 29 insertions(+), 30 deletions(-)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-03-06 16:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06 15:02 [PATCH 0/4] staging: bcm2835-audio: fix coding style issues Aishwarya Pant
2017-03-06 15:02 ` [PATCH 1/4] staging: bcm2835-audio: Replace kmalloc with kzalloc Aishwarya Pant
2017-03-06 15:03 ` [PATCH 2/4] staging: bcm2835-audio: replace null with error pointer value Aishwarya Pant
2017-03-06 15:03 ` [PATCH 3/4] staging: bcm2835-audio: propagate PTR_ERR value instead of -EPERM Aishwarya Pant
2017-03-06 15:04 ` [PATCH 4/4] staging: bcm2835-audio: use conditional only for error case Aishwarya Pant
2017-03-06 16:36   ` [Outreachy kernel] " Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.