OSDN Git Service

staging: ks7010: fix checkpatch SPACING
authorTobin C. Harding <me@tobin.cc>
Tue, 21 Mar 2017 02:37:04 +0000 (13:37 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:52:33 +0000 (08:52 +0100)
Checkpatch emits CHECK: No space is necessary after a cast.

Remove unnecessary space after cast.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/michael_mic.c

index de5e724..80497ef 100644 (file)
@@ -141,8 +141,8 @@ void MichaelMICFunction(struct michael_mic_t *Mic, u8 *Key,
         * +--+--+--------+--+----+--+--+--+--+--+--+--+--+
         */
        MichaelInitializeFunction(Mic, Key);
-       MichaelAppend(Mic, (uint8_t *) Data, 12);       /* |DA|SA| */
+       MichaelAppend(Mic, (uint8_t *)Data, 12);        /* |DA|SA| */
        MichaelAppend(Mic, pad_data, 4);        /* |Priority|0|0|0| */
-       MichaelAppend(Mic, (uint8_t *) (Data + 12), Len - 12);  /* |Data| */
+       MichaelAppend(Mic, (uint8_t *)(Data + 12), Len - 12);   /* |Data| */
        MichaelGetMIC(Mic, Result);
 }