staging: slicoss: get rid of slic_cmdqmem_init function
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 23 Oct 2012 22:08:43 +0000 (18:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 03:28:20 +0000 (20:28 -0700)
this function memset's the cmdqmem, instead do it in  slic_cmdq_init.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c

index 86c8c8e05576d2cba8a84f63010529f838a6ec3e..f08f4593b186ff873dc4df4116019ce0772f534d 100644 (file)
@@ -1424,13 +1424,6 @@ static struct slic_rspbuf *slic_rspqueue_getnext(struct adapter *adapter)
        return buf;
 }
 
-static void slic_cmdqmem_init(struct adapter *adapter)
-{
-       struct slic_cmdqmem *cmdqmem = &adapter->cmdqmem;
-
-       memset(cmdqmem, 0, sizeof(struct slic_cmdqmem));
-}
-
 static void slic_cmdqmem_free(struct adapter *adapter)
 {
        struct slic_cmdqmem *cmdqmem = &adapter->cmdqmem;
@@ -1559,7 +1552,7 @@ static int slic_cmdq_init(struct adapter *adapter)
        spin_lock_init(&adapter->cmdq_all.lock.lock);
        spin_lock_init(&adapter->cmdq_free.lock.lock);
        spin_lock_init(&adapter->cmdq_done.lock.lock);
-       slic_cmdqmem_init(adapter);
+       memset(&adapter->cmdqmem, 0, sizeof(struct slic_cmdqmem));
        adapter->slic_handle_ix = 1;
        for (i = 0; i < SLIC_CMDQ_INITPAGES; i++) {
                pageaddr = slic_cmdqmem_addpage(adapter);