Skip to contentSkip to conversation

crypto: CCP - change type of struct member lsb to signed

PATCH In review Gary R Hook 2 participants 2 messages Oct 12, 2016 – Oct 21, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: CCP - change type of struct member lsb to signed

The lsb field uses a value of -1 to indicate that it is unassigned. Therefore type must be a signed int.

---
 drivers/crypto/ccp/ccp-dev.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/ccp/ccp-dev.h +1 -1
index da5f4a6..5afaa53 100644
@@ -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 */
maintainer
#1 lore raw
Quoted 4 lines · Gary R Hook

The lsb field uses a value of -1 to indicate that it is unassigned. Therefore type must be a signed int.

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt