]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: fsl-mc/dpio: Fix cast truncate warning
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Tue, 6 Mar 2018 17:43:45 +0000 (11:43 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2018 17:57:37 +0000 (09:57 -0800)
commit0f4e6014677e8b85b8c61a6ed3707e12b6b5a59a
tree5cadccda55bcd068f9696575fb1fec5db32a041c
parent11bc6596aaad2c30b1538c15fa5471ed283aa3e4
staging: fsl-mc/dpio: Fix cast truncate warning

Sparse reports the following warning:
drivers/staging/fsl-mc/include/dpaa2-fd.h:421:30:
warning: cast truncates bits from constant value (ffff7fff becomes 7fff)

Fix this by explicitly masking the value with 0xffff.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/include/dpaa2-fd.h