We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5925766 + 5f2f97f commit 844395bCopy full SHA for 844395b
simrupt.c
@@ -66,7 +66,7 @@ static void produce_data(unsigned char val)
66
* before inserting the new one.
67
*/
68
unsigned int len;
69
- if (kfifo_avail(&rx_fifo) < sizeof(val)) {
+ if (kfifo_is_full(&rx_fifo)) {
70
unsigned char dummy;
71
len = kfifo_out(&rx_fifo, &dummy, sizeof(dummy));
72
if (len != sizeof(dummy))
0 commit comments