diff options
| author | Guenter Roeck <[email protected]> | 2019-04-08 12:38:35 -0700 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2019-05-05 21:02:17 +0200 |
| commit | 6e8a7c75d7e5d2861529cc8f43b958e834b900f7 (patch) | |
| tree | 9f28f1a36e2add2cca6947f7380ca19933aa5a4c /tools/perf/scripts/python/bin | |
| parent | 862c13b5518c556fce974ddcc9837fa94176adff (diff) | |
watchdog: da9062_wdt: Use 'dev' instead of dereferencing it repeatedly
Introduce local variable 'struct device *dev' and use it instead of
dereferencing it repeatedly. Also replace 'ret = func(); return ret;'
with 'return func();'.
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
Cc: Support Opensource <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Steve Twiss <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions