mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: vt6656: Refactor the vnt_set_bss_mode function
@ 2020-04-29 15:23 Oscar Carter
  2020-04-29 15:23 ` [PATCH 1/2] staging: vt6656: Check the return values in " Oscar Carter
  2020-04-29 15:23 ` [PATCH 2/2] staging: vt6656: Refactor the " Oscar Carter
  0 siblings, 2 replies; 3+ messages in thread
From: Oscar Carter @ 2020-04-29 15:23 UTC (permalink / raw)
  To: Forest Bond, Greg Kroah-Hartman
  Cc: Oscar Carter, Malcolm Priestley, Quentin Deslandes,
	John B. Wyatt IV, Colin Ian King, devel, linux-kernel

This patch series refactors the vnt_set_bss_mode function through two
patches.

The first one checks the return value of all the functions that return
zero if successful or a negative error code on failure.

The second patch removes all the duplicate code in the "if, else if, else"
statements as all the branches in every "if" are almost the same.

Oscar Carter (2):
  staging: vt6656: Check the return values in vnt_set_bss_mode function
  staging: vt6656: Refactor the vnt_set_bss_mode function

 drivers/staging/vt6656/card.c | 77 ++++++++++++++++++-----------------
 1 file changed, 39 insertions(+), 38 deletions(-)

--
2.20.1


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

end of thread, other threads:[~2020-04-29 15:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 15:23 [PATCH 0/2] staging: vt6656: Refactor the vnt_set_bss_mode function Oscar Carter
2020-04-29 15:23 ` [PATCH 1/2] staging: vt6656: Check the return values in " Oscar Carter
2020-04-29 15:23 ` [PATCH 2/2] staging: vt6656: Refactor the " Oscar Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®