Invert calloc(3) argument order.

Reviewed by:	grehan, mav
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D7613
This commit is contained in:
Marcelo Araujo 2016-08-30 12:40:12 +00:00
parent cc43fd1ab5
commit 9287c0323d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305061

View File

@ -2273,7 +2273,7 @@ e82545_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
int mac_provided;
/* Setup our softc */
sc = calloc(sizeof(*sc), 1);
sc = calloc(1, sizeof(*sc));
pi->pi_arg = sc;
sc->esc_pi = pi;