Skip to content
Commit bb44e154 authored by Tomer Barletz's avatar Tomer Barletz Committed by Tejun Heo
Browse files

sata_sx4: Check return code from pdc20621_i2c_read()



The variable spd0 might be used uninitialized when pdc20621_i2c_read()
fails.  This also generates a compilation warning with gcc 5.1.

tj: use pr_err()

Signed-off-by: default avatarTomer Barletz <barletz@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 74a80d67
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment