diff options
author | eadler <eadler@FreeBSD.org> | 2013-05-01 04:37:34 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-05-01 04:37:34 +0000 |
commit | a5a9ec51d6e8b0b33f89b8e4b171a2fd674818ed (patch) | |
tree | 396d6c04700211e454e3f5330392c42ea64a54cc /sys/cam/ctl | |
parent | 95ff9c17485fd7a6e0d684d343b68274504f93c4 (diff) | |
download | FreeBSD-src-a5a9ec51d6e8b0b33f89b8e4b171a2fd674818ed.zip FreeBSD-src-a5a9ec51d6e8b0b33f89b8e4b171a2fd674818ed.tar.gz |
Correct a few sizeof()s
Submitted by: swildner@DragonFlyBSD.org
Reviewed by: alfred
Diffstat (limited to 'sys/cam/ctl')
-rw-r--r-- | sys/cam/ctl/ctl_frontend_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_frontend_internal.c b/sys/cam/ctl/ctl_frontend_internal.c index 0c1ec27..87762f0 100644 --- a/sys/cam/ctl/ctl_frontend_internal.c +++ b/sys/cam/ctl/ctl_frontend_internal.c @@ -248,7 +248,7 @@ cfi_init(void) sizeof(struct cfi_lun_io), CTL_PORT_PRIV_SIZE); } - memset(softc, 0, sizeof(softc)); + memset(softc, 0, sizeof(*softc)); mtx_init(&softc->lock, "CTL frontend mutex", NULL, MTX_DEF); softc->flags |= CTL_FLAG_MASTER_SHELF; |