All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Drivers: gpu: drm: Fix coccinelle and checkpatch issues
@ 2017-10-14 12:54 Georgiana Chelu
  2017-10-14 12:54 ` [PATCH 1/3] Drivers: gpu: drm: Don't cast kzalloc() return value Georgiana Chelu
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Georgiana Chelu @ 2017-10-14 12:54 UTC (permalink / raw)
  To: outreachy-kernel
  Cc: Julia Lawall, Alex Deucher, Christian König, David Airlie

The first two patches fix coccinelle issues and the last patch fix
a checkpatch issue.

First patch: The return value of kzalloc does not need a cast because
the assignment operator will take care of this.

Second patch: The 'result' variable does not change its value until the
end of the function. Instead of using the variable, return its default value.

Third patch: Placing the constant on the right side will make the code easier
to read, as most of the people read from right to left.

Georgiana Chelu (3):
  Drivers: gpu: drm: Don't cast kzalloc() return value
  Drivers: gpu: drm: Remove useless variable
  Drivers: gpu: drm: Place the constant on the right side of the test

 .../amd/powerplay/hwmgr/vega10_processpptables.c   | 35 ++++++++--------------
 1 file changed, 13 insertions(+), 22 deletions(-)

-- 
2.11.0



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

end of thread, other threads:[~2017-10-17 20:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-14 12:54 [PATCH 0/3] Drivers: gpu: drm: Fix coccinelle and checkpatch issues Georgiana Chelu
2017-10-14 12:54 ` [PATCH 1/3] Drivers: gpu: drm: Don't cast kzalloc() return value Georgiana Chelu
2017-10-14 12:54 ` [PATCH 2/3] Drivers: gpu: drm: Remove useless variable Georgiana Chelu
2017-10-14 12:54 ` [PATCH 3/3] Drivers: gpu: drm: Place the constant on the right side of the test Georgiana Chelu
2017-10-16 18:39 ` [Outreachy kernel] [PATCH 0/3] Drivers: gpu: drm: Fix coccinelle and checkpatch issues Sean Paul
2017-10-17 20:21   ` Georgiana Chelu

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.