diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-10 09:28:01 -0700 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2019-05-05 21:02:37 +0200 |
commit | 02189bb91e74ba2f475db1af3e02876560683c9d (patch) | |
tree | d1623a637e1ce699f86aa1abb76d25c3caa3b7a8 /drivers/watchdog/Makefile | |
parent | 570927df46891a395e193a9a68532f25b21ab83d (diff) | |
download | linux-02189bb91e74ba2f475db1af3e02876560683c9d.tar.gz |
watchdog: jz4740_wdt: Use 'dev' instead of dereferencing it repeatedly
Introduce local variable 'struct device *dev' and use it instead of
dereferencing it repeatedly. Also, there is no call to dev_get_drvdata()
or platform_get_drvdata() in the driver, so drop the unnecessary
call to platform_set_drvdata().
The conversion was done automatically with coccinelle using the
following semantic patches. The semantic patches and the scripts
used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/Makefile')
0 files changed, 0 insertions, 0 deletions