diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-03-24 12:15:35 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-03-24 12:15:35 +0000 |
commit | 54172b1e5b0d3690847aae62b3d74ae0316ea1a0 (patch) | |
tree | ba8de361681d79f7fafcfa95687a1a6414368802 | |
parent | 4bda80b3bc6e2199f8c802d205959b211bb4c126 (diff) |
Remove redundant casts.
-rw-r--r-- | sys/dev/sdmmc/sdmmc_scsi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c index 8e690ea41ee..189ede20bf5 100644 --- a/sys/dev/sdmmc/sdmmc_scsi.c +++ b/sys/dev/sdmmc/sdmmc_scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_scsi.c,v 1.15 2009/02/20 19:16:35 miod Exp $ */ +/* $OpenBSD: sdmmc_scsi.c,v 1.16 2009/03/24 12:15:34 kettenis Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -99,10 +99,9 @@ sdmmc_scsi_attach(struct sdmmc_softc *sc) struct sdmmc_scsi_softc *scbus; struct sdmmc_function *sf; - scbus = (struct sdmmc_scsi_softc *)malloc(sizeof *scbus, - M_DEVBUF, M_WAITOK | M_ZERO); + scbus = malloc(sizeof *scbus, M_DEVBUF, M_WAITOK | M_ZERO); - scbus->sc_tgt = (struct sdmmc_scsi_target *)malloc(sizeof(*scbus->sc_tgt) * + scbus->sc_tgt = malloc(sizeof(*scbus->sc_tgt) * (SDMMC_SCSIID_MAX+1), M_DEVBUF, M_WAITOK | M_ZERO); /* |