Skip to content
Commit 32829a9a authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

i2c/i2c_dw: tiny improvement to execution flow



() Rolls the transfer initialization function into the setup function,
   as it is logical to have just one function (not to mention there
   was duplicate code).
() The setup function returns early if there is any error.

Change-Id: Ie9d3057f2963a0ba5b74ac66e058ff4fee31f099
Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent dff5f6a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment