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

Commit 783dd92b authored by Tamara Diaconita's avatar Tamara Diaconita Committed by Greg Kroah-Hartman
Browse files

staging: cxd2099: Change kzalloc parameter



Changed the structure tag 'struct cxd' with the variable '*ci' to fix the
following checkpath.pl issue: CHECK: Prefer kzalloc(sizeof(*ci)...) over
kzalloc(sizeof(struct cxd)).

Signed-off-by: default avatarTamara Diaconita <diaconita.tamara@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7e5bb54b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -693,7 +693,7 @@ struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg,
		return NULL;
	}

	ci = kzalloc(sizeof(struct cxd), GFP_KERNEL);
	ci = kzalloc(sizeof(*ci), GFP_KERNEL);
	if (!ci)
		return NULL;