Commit: 0042d07a1228d63fc854376b8aba9654785db89a
Parent: 4ab231781c95b237b3809c7b36a265ef5441519c
Author: Lucas De Marchi <lucas.de.marchi@gmail.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-10-09 12:55:07
Tree: 4abd8b441d2338b369c65e38289d3ff2f371c1d4

adapter: Refactor set_mode() in 2 functions Separate the handling of pending_mode from setting mode. This way it's simpler to set the pending_mode only when needed. Half of callers were passing NULL to this parameter.

Diffstat

M src/adapter.c | 78 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 41 insertions(+), 37 deletions(-)

View Full Diff | Patch