staging: kpc2000: fix integer overflow with left shifts
authorColin Ian King <colin.king@canonical.com>
Tue, 18 Jun 2019 10:15:54 +0000 (11:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2019 12:39:16 +0000 (14:39 +0200)
commitd326d99aa00f284e4320aededb3f7c663f5b4c87
treea93d31c5554d5d446876fc86507a360cf0322fa3
parenta50185cbb383f29543a86ff238fff13ec850dbf9
staging: kpc2000: fix integer overflow with left shifts

Currently there are several left shifts that are assigned to 64 bit
unsigned longs where a signed int 1 is being shifted, resulting in
an integer overflow.  Fix this bit using the BIT_ULL macro to perform
a 64 bit shift.  Also clean up an overly long statement.

Addresses-Coverity: ("Unintentional integer overflow")
Fixes: 7dc7967fc39a ("staging: kpc2000: add initial set of Daktronics drivers")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000/cell_probe.c