linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] bcache: Fix variable assignment in if condition in super.c
@ 2018-06-18 10:08 Florian Schmaus
  2018-06-18 10:09 ` [PATCH 1/3] bcache: do not assign in if condition register_bcache() Florian Schmaus
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Florian Schmaus @ 2018-06-18 10:08 UTC (permalink / raw)
  To: Coly Li, Kent Overstreet, linux-bcache; +Cc: Florian Schmaus, linux-kernel

This patch set attempts to improve bcache's super.c code by moving the
assignment of variables out of 'if' conditions. It does not address
all occurences of this style issue (which is reported as error by
checkpatch.pl).

Florian Schmaus (3):
  bcache: do not assign in if condition register_bcache()
  bcache: do not assign in if condition in bcache_init()
  bcache: do not assign in if condition in bcache_device_init()

 drivers/md/bcache/super.c | 36 ++++++++++++++++++++++++++----------
 1 file changed, 26 insertions(+), 10 deletions(-)

-- 
2.16.4

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

end of thread, other threads:[~2018-06-18 13:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-18 10:08 [PATCH 0/3] bcache: Fix variable assignment in if condition in super.c Florian Schmaus
2018-06-18 10:09 ` [PATCH 1/3] bcache: do not assign in if condition register_bcache() Florian Schmaus
2018-06-18 13:44   ` Coly Li
2018-06-18 10:09 ` [PATCH 2/3] bcache: do not assign in if condition in bcache_init() Florian Schmaus
2018-06-18 13:44   ` Coly Li
2018-06-18 10:09 ` [PATCH 3/3] bcache: do not assign in if condition in bcache_device_init() Florian Schmaus
2018-06-18 13:45   ` Coly Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).