diff options
author | 2016-03-07 00:11:11 +0000 | |
---|---|---|
committer | 2016-03-07 00:11:11 +0000 | |
commit | c8ba959946e9a99e06d6e174c3ccd423a0c0b7a9 (patch) | |
tree | 427ca73a393716ca5e9b6952cee0470636d6df9b | |
parent | Sync no-argument function declaration and definition by adding (void). (diff) | |
download | wireguard-openbsd-c8ba959946e9a99e06d6e174c3ccd423a0c0b7a9.tar.xz wireguard-openbsd-c8ba959946e9a99e06d6e174c3ccd423a0c0b7a9.zip |
remove needless malloc cast
-rw-r--r-- | sys/arch/sparc/dev/qec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/qec.c b/sys/arch/sparc/dev/qec.c index 25189c265c3..c1316af3357 100644 --- a/sys/arch/sparc/dev/qec.c +++ b/sys/arch/sparc/dev/qec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qec.c,v 1.27 2015/11/25 11:20:38 mpi Exp $ */ +/* $OpenBSD: qec.c,v 1.28 2016/03/07 00:11:11 mmcc Exp $ */ /* * Copyright (c) 1998 Theo de Raadt and Jason L. Wright. @@ -200,8 +200,7 @@ qec_fix_range(sc, sbp) int rlen, i, j; rlen = getproplen(sc->sc_node, "ranges"); - sc->sc_range = - (struct rom_range *)malloc(rlen, M_DEVBUF, M_NOWAIT); + sc->sc_range = malloc(rlen, M_DEVBUF, M_NOWAIT); if (sc->sc_range == NULL) { printf(": PROM ranges too large: %d\n", rlen); return EINVAL; |