diff options
author | Sebastian Reichel <sre@kernel.org> | 2014-10-19 18:11:59 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-10-19 18:11:59 -0400 |
commit | 068afbbebe14cdb628f7d738d1d289cf01a3b5d9 (patch) | |
tree | 8729b12771a096b92481a4ad7681288533a9923c /drivers/hsi | |
parent | a26a42508157bc9fda89e3b1d64e47b9e4b55c30 (diff) |
HSI: omap_ssi_port: Don't print uninitialized err
Do not print err variable, that has nothing to do with the error.
This fixes a warning, that is printed at build time:
drivers/hsi/controllers/omap_ssi_port.c: In function ‘ssi_port_probe’:
drivers/hsi/controllers/omap_ssi_port.c:1121:10: warning: ‘err’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/hsi')
-rw-r--r-- | drivers/hsi/controllers/omap_ssi_port.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hsi/controllers/omap_ssi_port.c b/drivers/hsi/controllers/omap_ssi_port.c index 4c0b5820581e..7e31eccf353a 100644 --- a/drivers/hsi/controllers/omap_ssi_port.c +++ b/drivers/hsi/controllers/omap_ssi_port.c | |||
@@ -1118,8 +1118,7 @@ static int __init ssi_port_probe(struct platform_device *pd) | |||
1118 | dev_dbg(&pd->dev, "init ssi port...\n"); | 1118 | dev_dbg(&pd->dev, "init ssi port...\n"); |
1119 | 1119 | ||
1120 | if (!try_module_get(ssi->owner)) { | 1120 | if (!try_module_get(ssi->owner)) { |
1121 | dev_err(&pd->dev, "could not increment parent module refcount (err=%d)\n", | 1121 | dev_err(&pd->dev, "could not increment parent module refcount\n"); |
1122 | err); | ||
1123 | return -ENODEV; | 1122 | return -ENODEV; |
1124 | } | 1123 | } |
1125 | 1124 | ||