]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: llite: don't clean in_data again
authorShawn Lin <shawn.lin@rock-chips.com>
Sun, 21 Aug 2016 02:44:37 +0000 (10:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 14:39:31 +0000 (16:39 +0200)
We have got a zero buffer for in_data as we use
kzalloc here. So let's remove it anyway.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c

index b6806180adf7a6f25172fddc1a7c85b117cfe05f..2f48f7e831c9f35f1f86ed3394cb43e4789f3531 100644 (file)
@@ -3434,7 +3434,6 @@ void *ll_iocontrol_register(llioc_callback_t cb, int count, unsigned int *cmd)
        if (!in_data)
                return NULL;
 
-       memset(in_data, 0, sizeof(*in_data));
        in_data->iocd_size = size;
        in_data->iocd_cb = cb;
        in_data->iocd_count = count;