summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authormbbill <[email protected]>2010-12-08 15:02:55 +0000
committermbbill <[email protected]>2010-12-08 15:02:55 +0000
commit7cdd2849a717914a90e4b24409d16932518c2f9e (patch)
tree4250ff983c55e5334abfa24f176f34e244539c05 /libcpu
parentffbda314107391c4ef3bcf1a2b8906b99f7d7651 (diff)
Bugfix: redundant * before "old_handler" is removed.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1182 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/AT91SAM7X/interrupt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/AT91SAM7X/interrupt.c b/libcpu/arm/AT91SAM7X/interrupt.c
index f5e6157dbd..c61a6dc551 100644
--- a/libcpu/arm/AT91SAM7X/interrupt.c
+++ b/libcpu/arm/AT91SAM7X/interrupt.c
@@ -83,7 +83,7 @@ void rt_hw_interrupt_install(int vector, rt_isr_handler_t new_handler, rt_isr_ha
{
if(vector >= 0 && vector < MAX_HANDLERS)
{
- if (*old_handler != RT_NULL) *old_handler = (rt_isr_handler_t)AT91C_BASE_AIC->AIC_SVR[vector];
+ if (old_handler != RT_NULL) *old_handler = (rt_isr_handler_t)AT91C_BASE_AIC->AIC_SVR[vector];
if (new_handler != RT_NULL) AT91C_BASE_AIC->AIC_SVR[vector] = (rt_uint32_t)new_handler;
}
}