summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ks7010/michael_mic.c
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-04-23 15:44:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-25 15:47:22 +0200
commit5e5cd8089ae91183679213d8273a7682edbc2e06 (patch)
tree1031279f7274ca618f0993ea9450a32c8bf24072 /drivers/staging/ks7010/michael_mic.c
parente396de684ebea31bde476423edcb087432f46729 (diff)
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.c')
-rw-r--r--drivers/staging/ks7010/michael_mic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/michael_mic.c b/drivers/staging/ks7010/michael_mic.c
index 6bc1b093be80..2128c8441405 100644
--- a/drivers/staging/ks7010/michael_mic.c
+++ b/drivers/staging/ks7010/michael_mic.c
@@ -110,7 +110,7 @@ static void michael_get_mic(struct michael_mic *mic, u8 *dst)
}
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)
{
u8 pad_data[4] = { priority, 0, 0, 0 };
// Compute the MIC value