Commit 6fc0005
committed
bluetooth: host: att: Remove meaningless check
`>= 0` was used when EATT support was implemented (zephyrproject-rtos#23199) because
`bt_l2cap_chan_send` could return number of bytes sent. After PR zephyrproject-rtos#67528,
`bt_l2cap_chan_send` doesn't return amount of bytes sent or any positive
value, but either 0 or negative value. Thus `>= 0` is not needed. It
also confusing when reading code, especially when the same check is not
implemented in other cases where underlying function `chan_send` is
used.
Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>1 parent 6ad0782 commit 6fc0005
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
| 587 | + | |
| 588 | + | |
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
| |||
919 | 920 | | |
920 | 921 | | |
921 | 922 | | |
922 | | - | |
| 923 | + | |
923 | 924 | | |
924 | 925 | | |
925 | 926 | | |
| |||
3346 | 3347 | | |
3347 | 3348 | | |
3348 | 3349 | | |
3349 | | - | |
| 3350 | + | |
3350 | 3351 | | |
3351 | 3352 | | |
3352 | 3353 | | |
| |||
0 commit comments