Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268352AbUH2Wrc (ORCPT ); Sun, 29 Aug 2004 18:47:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268353AbUH2Wrc (ORCPT ); Sun, 29 Aug 2004 18:47:32 -0400 Received: from hermes.fachschaften.tu-muenchen.de ([129.187.202.12]:42747 "HELO hermes.fachschaften.tu-muenchen.de") by vger.kernel.org with SMTP id S268352AbUH2Wr3 (ORCPT ); Sun, 29 Aug 2004 18:47:29 -0400 Date: Mon, 30 Aug 2004 00:47:18 +0200 From: Adrian Bunk To: Alex Woods Cc: linux-dvb-maintainer@linuxtv.org, linux-kernel@vger.kernel.org Subject: [2.6 patch] remove some unneeded #ifdefs from dvb/ttusb-dec/ttusb_dec.c Message-ID: <20040829224718.GB12134@fs.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org DVB_TTUSB_DEC selects CRC32, do the #ifdefs can be removed. Signed-off-by: Adrian Bunk --- linux-2.6.9-rc1-mm1-full-3.4/drivers/media/dvb/ttusb-dec/ttusb_dec.c.old 2004-08-29 21:09:21.000000000 +0200 +++ linux-2.6.9-rc1-mm1-full-3.4/drivers/media/dvb/ttusb-dec/ttusb_dec.c 2004-08-29 21:09:57.000000000 +0200 @@ -28,11 +28,7 @@ #include #include #include -#if defined(CONFIG_CRC32) || defined(CONFIG_CRC32_MODULE) #include -#else -#warning "CRC checking of firmware not available" -#endif #include #include "dmxdev.h" @@ -1165,9 +1161,7 @@ u16 firmware_csum = 0; u16 firmware_csum_ns; u32 firmware_size_nl; -#if defined(CONFIG_CRC32) || defined(CONFIG_CRC32_MODULE) u32 crc32_csum, crc32_check, tmp; -#endif const struct firmware *fw_entry = NULL; dprintk("%s\n", __FUNCTION__); @@ -1189,7 +1183,6 @@ /* a 32 bit checksum over the first 56 bytes of the DSP Code is stored at offset 56 of file, so use it to check if the firmware file is valid. */ -#if defined(CONFIG_CRC32) || defined(CONFIG_CRC32_MODULE) crc32_csum = crc32(~0L, firmware, 56) ^ ~0L; memcpy(&tmp, &firmware[56], 4); crc32_check = htonl(tmp); @@ -1199,7 +1192,6 @@ __FUNCTION__, crc32_csum, crc32_check); return -1; } -#endif memcpy(idstring, &firmware[36], 20); idstring[20] = '\0'; printk(KERN_INFO "ttusb_dec: found DSP code \"%s\".\n", idstring);