pata_amd: fix sparse warning
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 28 Mar 2008 21:33:56 +0000 (14:33 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:44:18 +0000 (15:44 -0400)
commitd9c74fbead08de13e3965e1c6ffe289f24f45479
tree95c3e8e4f33b6a00858afeb10b6a8344fb5d838d
parent6fd36390117f7844ad147377878ddb52088f583a
pata_amd: fix sparse warning

Current code is essentially choosing between dividing by 1 or
dividing by two, make the conditions a little more obvious.

As a bonus, removes a sparse error:
drivers/ata/pata_amd.c:59:11: warning: symbol '__x' shadows an earlier one
drivers/ata/pata_amd.c:59:11: originally declared here

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_amd.c