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

Commit 6167944d authored by Scott Kidder's avatar Scott Kidder Committed by Greg Kroah-Hartman
Browse files

Staging: crystalhd: removed kfree(NULL) checks



Removed kfree(NULL checks) that were not necessary

Signed-off-by: default avatarScott Kidder <scott.kidder11@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ef079a76
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -152,10 +152,8 @@ static int chd_dec_fetch_cdata(struct crystalhd_adp *adp, struct crystalhd_ioctl
	if (rc) {
		BCMLOG_ERR("failed to pull add_cdata sz:%x ua_off:%x\n",
			   io->add_cdata_sz, (unsigned int)ua_off);
		if (io->add_cdata) {
		kfree(io->add_cdata);
		io->add_cdata = NULL;
		}
		return -ENODATA;
	}

@@ -435,7 +433,6 @@ static void __devexit chd_dec_release_chdev(struct crystalhd_adp *adp)
	/* Clear iodata pool.. */
	do {
		temp = chd_dec_alloc_iodata(adp, 0);
		if (temp)
		kfree(temp);
	} while (temp);