From 2721cff09e6e2e38171a3cc13054ed099ac7afb9 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Tue, 18 May 2010 01:32:34 +0200 Subject: [PATCH] mciwave: Remove redundant "not NULL" checks of the variables lpParms. Found by coccicheck. --- dlls/mciwave/mciwave.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/mciwave/mciwave.c b/dlls/mciwave/mciwave.c index 87dc260207c..64852889c97 100644 --- a/dlls/mciwave/mciwave.c +++ b/dlls/mciwave/mciwave.c @@ -791,12 +791,12 @@ static DWORD WAVE_mciPlay(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt, } end = wmw->ckWaveData.cksize; - if (lpParms && (dwFlags & MCI_TO)) { + if (dwFlags & MCI_TO) { DWORD position = WAVE_ConvertTimeFormatToByte(wmw, lpParms->dwTo); if (position > end) return MCIERR_OUTOFRANGE; end = position; } - if (lpParms && (dwFlags & MCI_FROM)) { + if (dwFlags & MCI_FROM) { DWORD position = WAVE_ConvertTimeFormatToByte(wmw, lpParms->dwFrom); if (position > end) return MCIERR_OUTOFRANGE; /* Seek rounds down, so do we. */ @@ -1033,10 +1033,10 @@ static DWORD WAVE_mciRecord(MCIDEVICEID wDevID, DWORD_PTR dwFlags, DWORD_PTR pmt dwRet = WAVE_mciCreateRIFFSkeleton(wmw); if (dwRet != 0) return dwRet; - if (lpParms && (dwFlags & MCI_TO)) { + if (dwFlags & MCI_TO) { end = WAVE_ConvertTimeFormatToByte(wmw, lpParms->dwTo); } else end = 0xFFFFFFFF; - if (lpParms && (dwFlags & MCI_FROM)) { + if (dwFlags & MCI_FROM) { DWORD position = WAVE_ConvertTimeFormatToByte(wmw, lpParms->dwFrom); if (wmw->ckWaveData.cksize < position) return MCIERR_OUTOFRANGE; /* Seek rounds down, so do we. */