diff options
| author | BernardXiong <[email protected]> | 2015-07-06 18:24:56 +0800 |
|---|---|---|
| committer | BernardXiong <[email protected]> | 2015-07-06 18:24:56 +0800 |
| commit | 2ca3ceab70956fb9e2754092bbd201020b8254a9 (patch) | |
| tree | d8eca35ff60d6abece6fcb84083c33e6018b8d67 /components/drivers | |
| parent | 91d866d81a20e014b25365391ee1dda0f544fd01 (diff) | |
[DeviceDrivers] code cleanup for CAN
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/can/can.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/drivers/can/can.c b/components/drivers/can/can.c index e0db377018..0ed971053d 100644 --- a/components/drivers/can/can.c +++ b/components/drivers/can/can.c @@ -322,10 +322,6 @@ static rt_err_t rt_can_open(struct rt_device *dev, rt_uint16_t oflag) /* configure low level device */ can->ops->control(can, RT_DEVICE_CTRL_SET_INT, (void *)RT_DEVICE_FLAG_INT_RX); } - else - { - can->can_rx = RT_NULL; - } } if (can->can_tx == RT_NULL) @@ -356,10 +352,6 @@ static rt_err_t rt_can_open(struct rt_device *dev, rt_uint16_t oflag) /* configure low level device */ can->ops->control(can, RT_DEVICE_CTRL_SET_INT, (void *)RT_DEVICE_FLAG_INT_TX); } - else - { - can->can_tx = RT_NULL; - } } can->ops->control(can, RT_DEVICE_CTRL_SET_INT, (void *)RT_DEVICE_CAN_INT_ERR); |
