Skip to content

Commit af9ea51

Browse files
committed
Remove unnecessary conditional
1 parent db0adf2 commit af9ea51

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

source/c_pwm.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ void export_pwm(struct pwm_exp *new_pwm)
9494
}
9595
}
9696

97-
int is_dmtimer_pin(pwm_t *p) {
98-
if(strlen(p->module) < 5)
99-
return 0;
100-
97+
int is_dmtimer_pin(pwm_t *p) {
10198
char temp[6];
10299
strncpy(temp, p->module, 5);
103100
temp[5] = '\0';

0 commit comments

Comments
 (0)