CHROMIUM: sd: Fix warning
authorOlof Johansson <olofj@chromium.org>
Mon, 10 Sep 2012 16:54:38 +0000 (09:54 -0700)
committerGerrit <chrome-bot@google.com>
Tue, 11 Sep 2012 00:27:43 +0000 (17:27 -0700)
commit437d25ac2237b12186b91d749dd830e5d2e307e4
treee82b04f7ab9cfc37999c356feb21032835a090c0
parent90b1555b7321524f05c1930a21e7943b04e30188
CHROMIUM: sd: Fix warning

drivers/scsi/sd.c:2676:2: warning: assignment from incompatible pointer type [enabled by default]
drivers/scsi/sd.c:2913:2: warning: assignment from incompatible pointer type [enabled by default]

Since there's no way to return an error, do a WARN_ON() in the error
case instead.

BUG=chromium-os:34287
TEST=none (we need an automated test for error injection here)

Change-Id: Idaf0c0184e81ef7bac63b1deeda1a7690aa48a42
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/32830
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
drivers/scsi/sd.c