Commit 34c0594a authored by Soren Brinkmann's avatar Soren Brinkmann Committed by Michal Simek
Browse files

I2C: cadence: Don't initialize vars on every try



When a transaction fails and is retried, some variables don't need to be
re-assigned and can be moved out of the code which is looping.

Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent bb105a7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment