crypto: ccp - change type of struct member lsb to signed
authorGary R Hook <gary.hook@amd.com>
Wed, 12 Oct 2016 13:47:03 +0000 (08:47 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2016 03:03:46 +0000 (11:03 +0800)
The lsb field uses a value of -1 to indicate that it
is unassigned. Therefore type must be a signed int.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev.h

index da5f4a67808344b1123d023123d58b1381ca1e11..5afaa53672b399bd932ac609afdf93fa66452d19 100644 (file)
@@ -278,7 +278,7 @@ struct ccp_cmd_queue {
        /* Private LSB that is assigned to this queue, or -1 if none.
         * Bitmap for my private LSB, unused otherwise
         */
-       unsigned int lsb;
+       int lsb;
        DECLARE_BITMAP(lsbmap, PLSB_MAP_SIZE);
 
        /* Queue processing thread */