pata_legacy: bogus clock in opti82c46x_set_piomode()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 11 Mar 2013 11:41:51 +0000 (14:41 +0300)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 3 Apr 2013 23:53:10 +0000 (19:53 -0400)
commite0044c9822ab7b60b493bc135ec258227a082b5a
treee47da92671758736001b15df13add9afaf25c5df
parentbdfa2e7e5a46d7dcd9ff127fdf198faf90f0e215
pata_legacy: bogus clock in opti82c46x_set_piomode()

"sysclk" is used as an index into a 4 element array.  My static
checker complains because it can be out of bounds.  From the
context, it looks like there is a right bit shift missing.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_legacy.c