diff options
author | Mahesh Radhakrishnan | 2019-10-03 19:09:31 -0500 |
---|---|---|
committer | Mahesh Radhakrishnan | 2019-10-03 19:09:31 -0500 |
commit | fd7f9198ebeebc62a8f60a7ecdb3cab0e8241420 (patch) | |
tree | f2de77bb5c4bf71a0839225d1bc14d76db431fbe | |
parent | 666ec8637a16e210dd823daf7a152afe16ae229f (diff) | |
parent | 4ff30eedca67e88eed84d5370bc2733d118f9f99 (diff) | |
download | transport-fd7f9198ebeebc62a8f60a7ecdb3cab0e8241420.tar.gz transport-fd7f9198ebeebc62a8f60a7ecdb3cab0e8241420.tar.xz transport-fd7f9198ebeebc62a8f60a7ecdb3cab0e8241420.zip |
Merge pull request #186 in PROCESSOR-SDK/transport from review_PRSDK-7169 to master
* commit '4ff30eedca67e88eed84d5370bc2733d118f9f99':
am65xx/j7: Resolve static analysis warnings
-rw-r--r-- | ndk/nimu/src/v7/nimu_eth.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ndk/nimu/src/v7/nimu_eth.c b/ndk/nimu/src/v7/nimu_eth.c index 1d2949a..4d12dc9 100644 --- a/ndk/nimu/src/v7/nimu_eth.c +++ b/ndk/nimu/src/v7/nimu_eth.c | |||
@@ -142,14 +142,19 @@ typedef struct NIMU_EMAC_DATA_s | |||
142 | NIMU_PdInfo pdi; | 142 | NIMU_PdInfo pdi; |
143 | }NIMU_EMAC_DATA; | 143 | }NIMU_EMAC_DATA; |
144 | 144 | ||
145 | volatile int32_t nimuPollLoop = 1U; | ||
146 | |||
145 | static void nimu_task_poll_pkt (uint32_t arg0, uint32_t arg1); /* misra warning */ | 147 | static void nimu_task_poll_pkt (uint32_t arg0, uint32_t arg1); /* misra warning */ |
146 | static void nimu_task_poll_pkt (uint32_t arg0, uint32_t arg1) | 148 | static void nimu_task_poll_pkt (uint32_t arg0, uint32_t arg1) |
147 | { | 149 | { |
150 | uint32_t pollStatus; | ||
148 | uint32_t portNum = (uint32_t) arg0; | 151 | uint32_t portNum = (uint32_t) arg0; |
149 | while (1) | 152 | (void)arg1; |
153 | while (nimuPollLoop == 1U) | ||
150 | { | 154 | { |
151 | /* If poll pkt returns error, then port is down, re-check after sleep period */ | 155 | /* If poll pkt returns error, then port is down, re-check after sleep period */ |
152 | if (emac_poll_pkt(portNum) != EMAC_DRV_RESULT_OK) | 156 | pollStatus = emac_poll_pkt(portNum); |
157 | if (pollStatus != 0U) | ||
153 | { | 158 | { |
154 | Osal_TaskSleep(1); | 159 | Osal_TaskSleep(1); |
155 | } | 160 | } |