]> xenbits.xensource.com Git - xen.git/commit
x86/MSI: don't risk division by zero
authorJan Beulich <jbeulich@suse.com>
Fri, 14 Mar 2014 16:45:14 +0000 (17:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 14 Mar 2014 16:45:14 +0000 (17:45 +0100)
commitf4c6912c95ed5d5bb08e1b07b9588876595ecdbd
tree9a17d0be70b259039f205a1483411a33580739a2
parentea3ec32f7956917eb0339b2b0df24e8f658a05ed
x86/MSI: don't risk division by zero

The check in question is redundant with the one in the immediately
following if(), where dividing by zero gets carefully avoided.

Spotted-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
master commit: 5d160d913e03b581bdddde73535c18ac670cf0a9
master date: 2014-02-24 12:11:01 +0100
xen/arch/x86/msi.c