Patch from Arne Redlich <agr@powerkom-dd.de>:
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 12 Jun 2008 11:35:40 +0000 (11:35 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 12 Jun 2008 11:35:40 +0000 (11:35 +0000)
Removes unneeded kfree()

Signed-off-by: Arne Redlich <agr@powerkom-dd.de>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@407 d57e44dd-8a1f-0410-8b47-8ef2f437770f

mpt/mpt_scst.c

index c0f03ac..34aa896 100644 (file)
@@ -4592,7 +4592,6 @@ mpt_stm_adapter_install(MPT_ADAPTER *ioc)
        if (priv == NULL) {
                printk(KERN_ERR MYNAM
                                ":%s failed to allocate private structure\n", ioc->name);
-               kfree(priv);
                return (-1);
        }
        memset(priv, 0, sizeof(*priv));