diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-04-15 14:05:27 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-05-22 23:37:26 -0400 |
commit | 3e4cd0737d2e9c3dd52153a23aef1753e3a99fc4 (patch) | |
tree | f9dfd615737965b49678a789413a98dcb85f32c3 /arch/sh | |
parent | 54aa89ea29d7dd7fd414297d4bdc8f6eff905784 (diff) |
sh: cosmetic improvement: use an existing pointer
Use an existing local variable, instead of calculating the pointer
multiple times explicitly.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Simon Horman <horms@verge.net.au>
Cc: Magnus Damm <damm@opensource.se>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/shmobile/pm_runtime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/kernel/cpu/shmobile/pm_runtime.c b/arch/sh/kernel/cpu/shmobile/pm_runtime.c index 22db127afa7b..64c807c39208 100644 --- a/arch/sh/kernel/cpu/shmobile/pm_runtime.c +++ b/arch/sh/kernel/cpu/shmobile/pm_runtime.c | |||
@@ -157,7 +157,7 @@ static int default_platform_runtime_suspend(struct device *dev) | |||
157 | might_sleep(); | 157 | might_sleep(); |
158 | 158 | ||
159 | /* catch misconfigured drivers not starting with resume */ | 159 | /* catch misconfigured drivers not starting with resume */ |
160 | if (test_bit(PDEV_ARCHDATA_FLAG_INIT, &pdev->archdata.flags)) { | 160 | if (test_bit(PDEV_ARCHDATA_FLAG_INIT, &ad->flags)) { |
161 | ret = -EINVAL; | 161 | ret = -EINVAL; |
162 | goto out; | 162 | goto out; |
163 | } | 163 | } |
@@ -170,8 +170,8 @@ static int default_platform_runtime_suspend(struct device *dev) | |||
170 | 170 | ||
171 | /* put device on idle list */ | 171 | /* put device on idle list */ |
172 | spin_lock_irqsave(&hwblk_lock, flags); | 172 | spin_lock_irqsave(&hwblk_lock, flags); |
173 | list_add_tail(&pdev->archdata.entry, &hwblk_idle_list); | 173 | list_add_tail(&ad->entry, &hwblk_idle_list); |
174 | __set_bit(PDEV_ARCHDATA_FLAG_IDLE, &pdev->archdata.flags); | 174 | __set_bit(PDEV_ARCHDATA_FLAG_IDLE, &ad->flags); |
175 | spin_unlock_irqrestore(&hwblk_lock, flags); | 175 | spin_unlock_irqrestore(&hwblk_lock, flags); |
176 | 176 | ||
177 | /* increase idle count */ | 177 | /* increase idle count */ |