Commit aca6dae9 authored by FdaSilvaYY's avatar FdaSilvaYY Committed by Matt Caswell
Browse files

Remove useless NULL checks

parent 7d52e554
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ DH_METHOD *DH_meth_new(const char *name, int flags)
void DH_meth_free(DH_METHOD *dhm)
{
    if (dhm != NULL) {
        if (dhm->name != NULL)
        OPENSSL_free(dhm->name);
        OPENSSL_free(dhm);
    }
+1 −2
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ DSA_METHOD *DSA_meth_new(const char *name, int flags)
void DSA_meth_free(DSA_METHOD *dsam)
{
    if (dsam != NULL) {
        if (dsam->name != NULL)
        OPENSSL_free(dsam->name);
        OPENSSL_free(dsam);
    }
+1 −2
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@ RSA_METHOD *RSA_meth_new(const char *name, int flags)
void RSA_meth_free(RSA_METHOD *meth)
{
    if (meth != NULL) {
        if (meth->name != NULL)
        OPENSSL_free(meth->name);
        OPENSSL_free(meth);
    }