Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/freescale
Julia Lawall 07bf2e11ad net/fsl: use of_property_read_bool
Use of_property_read_bool to check for the existence of a property.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e1,e2,x;
@@
-	if (of_get_property(e1,e2,NULL))
-		x = true;
-	else
-		x = false;
+	x = of_property_read_bool(e1,e2);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-08 16:15:00 -07:00
..
2016-05-27 15:26:11 -07:00
2015-10-05 03:16:39 -07:00
2015-12-27 20:51:39 -05:00
2016-01-25 10:51:52 -08:00