diff options
author | Sergio Paracuellos | 2018-04-23 15:44:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-04-25 15:47:22 +0200 |
commit | 5e5cd8089ae91183679213d8273a7682edbc2e06 (patch) | |
tree | 1031279f7274ca618f0993ea9450a32c8bf24072 /drivers/staging/ks7010/michael_mic.h | |
parent | staging: mt7621-mmc: Fix calculation typo in msdc_init_gpd_bd (diff) | |
download | kernel-qcow2-linux-5e5cd8089ae91183679213d8273a7682edbc2e06.tar.gz kernel-qcow2-linux-5e5cd8089ae91183679213d8273a7682edbc2e06.tar.xz kernel-qcow2-linux-5e5cd8089ae91183679213d8273a7682edbc2e06.zip |
staging: ks7010: avoid casts in michael_mic_function calls
This commit removes casts in calls to michael_mic_function.
Most of them are nosense because types match perfectly function
parameters. To avoid also int casting for len parameter just
pass unsigned len to function which makes sense because is only
being called with unsigned int len parameters.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010/michael_mic.h')
-rw-r--r-- | drivers/staging/ks7010/michael_mic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/michael_mic.h b/drivers/staging/ks7010/michael_mic.h index d33508070088..eb22fdd660d9 100644 --- a/drivers/staging/ks7010/michael_mic.h +++ b/drivers/staging/ks7010/michael_mic.h @@ -21,4 +21,4 @@ struct michael_mic { }; void michael_mic_function(struct michael_mic *mic, u8 *key, - u8 *data, int len, u8 priority, u8 *result); + u8 *data, unsigned int len, u8 priority, u8 *result); |