Thread (41 messages) 41 messages, 15 authors, 2015-03-12
STALE4127d
Revisions (5)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v1 [diff vs current]
  5. v1 current

[PATCH 1/8] clk: add helper function clk_is_match()

From: Russell King - ARM Linux <hidden>
Date: 2015-03-04 09:51:55
Also in: alsa-devel, dri-devel, linux-pwm, linux-serial

On Wed, Feb 25, 2015 at 09:27:57AM -0800, Mike Turquette wrote:
+static inline bool clk_is_match(struct clk *p, struct clk *q)
+{
+	return p == q ? true : false;
When they created the C standard, they already taught the compiler that
p == q returns a true / false boolean value; there's no need for ?: here.

-- 
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help