all: Add 'U' suffix when using unsigned variables
Add a 'U' suffix to values when computing and comparing against unsigned variables. Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
caebf204c6
commit
24d71431e9
559 changed files with 2331 additions and 2328 deletions
|
@ -112,17 +112,17 @@ static inline int cipher_begin_session(struct device *dev,
|
|||
ctx->ops.cipher_mode = mode;
|
||||
|
||||
flags = (ctx->flags & (CAP_OPAQUE_KEY_HNDL | CAP_RAW_KEY));
|
||||
__ASSERT(flags != 0, "Keytype missing: RAW Key or OPAQUE handle");
|
||||
__ASSERT(flags != 0U, "Keytype missing: RAW Key or OPAQUE handle");
|
||||
__ASSERT(flags != (CAP_OPAQUE_KEY_HNDL | CAP_RAW_KEY),
|
||||
"conflicting options for keytype");
|
||||
|
||||
flags = (ctx->flags & (CAP_INPLACE_OPS | CAP_SEPARATE_IO_BUFS));
|
||||
__ASSERT(flags != 0, "IO buffer type missing");
|
||||
__ASSERT(flags != 0U, "IO buffer type missing");
|
||||
__ASSERT(flags != (CAP_INPLACE_OPS | CAP_SEPARATE_IO_BUFS),
|
||||
"conflicting options for IO buffer type");
|
||||
|
||||
flags = (ctx->flags & (CAP_SYNC_OPS | CAP_ASYNC_OPS));
|
||||
__ASSERT(flags != 0, "sync/async type missing");
|
||||
__ASSERT(flags != 0U, "sync/async type missing");
|
||||
__ASSERT(flags != (CAP_SYNC_OPS | CAP_ASYNC_OPS),
|
||||
"conflicting options for sync/async");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue