diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2016-08-01 15:56:09 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-08-02 14:02:59 +0200 |
commit | 48e0792e4ae8d4267dc2d5fb6af3b2c079a4f61f (patch) | |
tree | 6c5784a7a630aacc228380e160d0114904f109c6 /src/soc/dmp/vortex86ex | |
parent | 47f7b0e196baa5b21820e8b7f91af18459e27813 (diff) |
i2c/w83795: Fix chip type message
(val & 4) == 1 is always false. Since val & 4 is either zero or
non-zero, just drop the second test (for "== 1").
Validated against the data sheet that this is really the right register,
bit and value.
Change-Id: I627df9a9b4fddfff486689e405f52a3b54135eef
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Found-by: Coverity Scan #1241864
Reviewed-on: https://review.coreboot.org/16009
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/soc/dmp/vortex86ex')
0 files changed, 0 insertions, 0 deletions