All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhumika Goyal <bhumirks@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH 0/5] Staging: Replace ternary operators with min_t/max_t
Date: Mon, 22 Feb 2016 16:15:29 +0530	[thread overview]
Message-ID: <cover.1456136671.git.bhumirks@gmail.com> (raw)

This patchset replaces ternary operators with macros min_t/max_t as 
they are shorter and thus increases code readability. Macro min_t return 
the minimum and min_t returns maximum  of the two compared values.
Made a semantic patch for changes:

@@
type T;
T x;
T y;
@@
(
- x < y ? x : y
+ min_t(T,x,y)
|
- x > y ? x : y
+ max_t(T,x,y)
)


Bhumika Goyal (5):
  Staging: rtl8723au: Use macro min_t instead of ternary operator
  Staging: rdma: Use macro min_t instead of ternary operator
  Staging: gdm724x: Use min_t instead of ternary operator
  Staging: lustre: Use min_t and max_t instead of ternary operator
  Staging: rts5208: Use min_t instead of ternary operator

 drivers/staging/gdm724x/gdm_mux.c                   |  2 +-
 drivers/staging/lustre/lustre/include/lustre_disk.h |  6 ++----
 drivers/staging/lustre/lustre/osc/osc_request.c     |  2 +-
 drivers/staging/lustre/lustre/ptlrpc/events.c       |  2 +-
 drivers/staging/rdma/hfi1/pio_copy.c                |  6 +++---
 drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c   | 14 +++++++-------
 drivers/staging/rts5208/sd.c                        |  4 ++--
 7 files changed, 17 insertions(+), 19 deletions(-)

-- 
1.9.1



             reply	other threads:[~2016-02-22 10:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22 10:45 Bhumika Goyal [this message]
2016-02-22 10:45 ` [PATCH 1/5] Staging: rtl8723au: Use macro min_t instead of ternary operator Bhumika Goyal
2016-02-22 10:45 ` [PATCH 2/5] Staging: rdma: " Bhumika Goyal
2016-02-22 10:45 ` [PATCH 3/5] Staging: gdm724x: Use " Bhumika Goyal
2016-02-22 10:45 ` [PATCH 4/5] Staging: lustre: Use min_t or max_t " Bhumika Goyal
2016-02-22 12:40   ` [Outreachy kernel] " Julia Lawall
2016-02-22 13:33     ` Bhumika Goyal
2016-02-22 21:10   ` Greg KH
2016-02-23  3:43     ` Bhumika Goyal
2016-02-22 10:45 ` [PATCH 5/5] Staging: rts5208: Use min_t " Bhumika Goyal
2016-02-22 21:11 ` [Outreachy kernel] [PATCH 0/5] Staging: Replace ternary operators with min_t/max_t Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1456136671.git.bhumirks@gmail.com \
    --to=bhumirks@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.