From 54172b1e5b0d3690847aae62b3d74ae0316ea1a0 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 24 Mar 2009 12:15:35 +0000 Subject: Remove redundant casts. --- sys/dev/sdmmc/sdmmc_scsi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/dev') 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 @@ -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); /* -- cgit v1.2.3