Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a1afdbf authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

Staging: crystalhd: remove an unneeded NULL check



We already established earlier in the function that "temp" is
non-NULL.  We also don't need to set to NULL because it's a stack
variable an we return immediately.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6441a578
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -255,10 +255,7 @@ static int chd_dec_api_cmd(struct crystalhd_adp *adp, unsigned long ua,
		rc = chd_dec_proc_user_data(adp, temp, ua, 1);
	}

	if (temp) {
	chd_dec_free_iodata(adp, temp, 0);
		temp = NULL;
	}

	return rc;
}