[PATCH v2 04/14] thermal: mvebu: Remove unneeded variable initialization
Ezequiel Garcia
ezequiel.garcia at free-electrons.com
Fri Mar 22 18:25:04 EDT 2013
This variable is used only after it's properly initialized,
so there's no need to set it to NULL in its declaration.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
---
drivers/thermal/mvebu_thermal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/thermal/mvebu_thermal.c b/drivers/thermal/mvebu_thermal.c
index 031f94d..1f502ed 100644
--- a/drivers/thermal/mvebu_thermal.c
+++ b/drivers/thermal/mvebu_thermal.c
@@ -72,7 +72,7 @@ MODULE_DEVICE_TABLE(of, mvebu_thermal_id_table);
static int mvebu_thermal_probe(struct platform_device *pdev)
{
- struct thermal_zone_device *thermal = NULL;
+ struct thermal_zone_device *thermal;
struct mvebu_thermal_priv *priv;
struct resource *res;
--
1.7.8.6
More information about the linux-arm-kernel
mailing list