mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
s390/zcrypt: code cleanup
This patch tries to fix as much as possible of the checkpatch.pl --strict findings: CHECK: Logical continuations should be on the previous line CHECK: No space is necessary after a cast CHECK: Alignment should match open parenthesis CHECK: 'useable' may be misspelled - perhaps 'usable'? WARNING: Possible repeated word: 'is' CHECK: spaces preferred around that '*' (ctx:VxV) CHECK: Comparison to NULL could be written "!msg" CHECK: Prefer kzalloc(sizeof(*zc)...) over kzalloc(sizeof(struct...)...) CHECK: Unnecessary parentheses around resp_type->work CHECK: Avoid CamelCase: <xcRB> There is no functional change comming with this patch, only code cleanup, renaming, whitespaces, indenting, ... but no semantic change in any way. Also the API (zcrypt and pkey header file) is semantically unchanged. Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Jürgen Christ <jchrist@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
committed by
Heiko Carstens
parent
6acb086d9f
commit
2004b57cde
@@ -170,7 +170,7 @@ static inline unsigned long z_copy_from_user(bool userspace,
|
||||
{
|
||||
if (likely(userspace))
|
||||
return copy_from_user(to, from, n);
|
||||
memcpy(to, (void __force *) from, n);
|
||||
memcpy(to, (void __force *)from, n);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ static inline unsigned long z_copy_to_user(bool userspace,
|
||||
{
|
||||
if (likely(userspace))
|
||||
return copy_to_user(to, from, n);
|
||||
memcpy((void __force *) to, from, n);
|
||||
memcpy((void __force *)to, from, n);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user