diff options
| author | Pekka Enberg <[email protected]> | 2009-04-08 11:14:00 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2009-06-19 11:00:37 -0700 |
| commit | a39ee671746b6483c6a259fef755a4a3e475e3e4 (patch) | |
| tree | 94a2be12816f509ff25ded741cbf36647651eb39 /tools/perf/scripts/python | |
| parent | 00e2e05dd08bc15b09514f5ce35f0b9a3534e9ba (diff) | |
Staging: w35und: more simplify hal_init_hardware() error handling
Impact: fix, cleanup
If initialization in hal_init_hardware() fails, we call hal_halt() to
clean up and release resource. However, hal_halt() will attempt to
call del_timer_sync() on ->LEDTimer on "stage 3" although it's not
initialized at that point. Fix that up by simplifying error handling
logic in hal_init_hardware() with gotos.
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions