git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
microblaze: Adding likely macros
[safe/jmp/linux-2.6]
/
arch
/
microblaze
/
kernel
/
dma.c
diff --git
a/arch/microblaze/kernel/dma.c
b/arch/microblaze/kernel/dma.c
index
b108497
..
4d5b031
100644
(file)
--- a/
arch/microblaze/kernel/dma.c
+++ b/
arch/microblaze/kernel/dma.c
@@
-37,7
+37,7
@@
static inline void __dma_sync_page(unsigned long paddr, unsigned long offset,
static unsigned long get_dma_direct_offset(struct device *dev)
{
- if (
dev
)
+ if (
likely(dev)
)
return (unsigned long)dev->archdata.dma_data;
return PCI_DRAM_OFFSET; /* FIXME Not sure if is correct */