Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ieee1394: remove unused macros HPSB_PANIC and HPSB_TRACE

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Ben Collins <bcollins@ubuntu.com>

authored by

Stefan Richter and committed by
Ben Collins
d83e7d8e 66faadfa

+3 -8
+3 -3
drivers/ieee1394/ieee1394_transactions.c
··· 14 14 #include <linux/smp_lock.h> 15 15 #include <linux/interrupt.h> 16 16 17 + #include <asm/bug.h> 17 18 #include <asm/errno.h> 18 19 19 20 #include "ieee1394.h" ··· 215 214 packet->node_id); 216 215 return -EAGAIN; 217 216 } 218 - HPSB_PANIC("reached unreachable code 1 in %s", __FUNCTION__); 217 + BUG(); 219 218 220 219 case ACK_BUSY_X: 221 220 case ACK_BUSY_A: ··· 262 261 packet->ack_code, packet->node_id, packet->tcode); 263 262 return -EAGAIN; 264 263 } 265 - 266 - HPSB_PANIC("reached unreachable code 2 in %s", __FUNCTION__); 264 + BUG(); 267 265 } 268 266 269 267 struct hpsb_packet *hpsb_make_readpacket(struct hpsb_host *host, nodeid_t node,
-5
drivers/ieee1394/ieee1394_types.h
··· 65 65 #define HPSB_VERBOSE(fmt, args...) 66 66 #endif 67 67 68 - #define HPSB_PANIC(fmt, args...) panic("ieee1394: " fmt "\n" , ## args) 69 - 70 - #define HPSB_TRACE() HPSB_PRINT(KERN_INFO, "TRACE - %s, %s(), line %d", __FILE__, __FUNCTION__, __LINE__) 71 - 72 - 73 68 #ifdef __BIG_ENDIAN 74 69 75 70 static inline void *memcpy_le32(u32 *dest, const u32 *__src, size_t count)