Thread (153 messages) flat view 153 messages, 15 authors, 2015-06-24

Re: [PATCH v4 01/10] regmap: Introduce regmap_get_max_register.

From: Mark Brown <broonie@kernel.org>
Date: 2015-05-04 13:14:54
Also in: linux-arm-kernel, linux-arm-msm, linux-devicetree, lkml

On Mon, Mar 30, 2015 at 10:56:27PM +0100, Srinivas Kandagatla wrote:
+int regmap_get_max_register(struct regmap *map)
+{
+	return map->max_register ? : -EINVAL;
+}
Please don't abuse the ternery operator like this, write a proper if
statement that people can read.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help