All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] staging: bcm2835-audio: fix coding style issues
@ 2017-03-06 19:46 Aishwarya Pant
  2017-03-06 19:46 ` [PATCH v2 1/4] staging: bcm2835-audio: Replace kmalloc with kzalloc Aishwarya Pant
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Aishwarya Pant @ 2017-03-06 19:46 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.


Changes in v2:
	- Return error value -EBUSY instead of -1 when queue_work() fails

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    | 83 +++++++++++-----------
 1 file changed, 41 insertions(+), 42 deletions(-)

-- 
2.7.4



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

end of thread, other threads:[~2017-03-07  6:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06 19:46 [PATCH v2 0/4] staging: bcm2835-audio: fix coding style issues Aishwarya Pant
2017-03-06 19:46 ` [PATCH v2 1/4] staging: bcm2835-audio: Replace kmalloc with kzalloc Aishwarya Pant
2017-03-06 19:46 ` [PATCH v2 2/4] staging: bcm2835-audio: replace null with error pointer value Aishwarya Pant
2017-03-06 19:46 ` [PATCH v2 3/4] staging: bcm2835-audio: propagate PTR_ERR value instead of -EPERM Aishwarya Pant
2017-03-06 19:47 ` [PATCH v2 4/4] staging: bcm2835-audio: use conditional only for error case Aishwarya Pant
2017-03-06 21:41   ` [Outreachy kernel] " Julia Lawall
2017-03-07  5:50     ` Aishwarya Pant
2017-03-07  6:31       ` 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.