X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=samples%2Fkfifo%2Finttype-example.c;h=8dc3c2e7105a0474b5638c208a4acfc63c36a93e;hb=1213959d4ad2f523290d0d7c94f712edef63852c;hp=6f8e79e76c9e43aa6d181698c281e5b83b80a529;hpb=8f08bfd4777a2953d18db756938d90a5b532eb1a;p=karo-tx-linux.git diff --git a/samples/kfifo/inttype-example.c b/samples/kfifo/inttype-example.c index 6f8e79e76c9e..8dc3c2e7105a 100644 --- a/samples/kfifo/inttype-example.c +++ b/samples/kfifo/inttype-example.c @@ -61,7 +61,7 @@ static int __init testfunc(void) /* put values into the fifo */ for (i = 0; i != 10; i++) - kfifo_put(&test, &i); + kfifo_put(&test, i); /* show the number of used elements */ printk(KERN_INFO "fifo len: %u\n", kfifo_len(&test)); @@ -78,7 +78,7 @@ static int __init testfunc(void) kfifo_skip(&test); /* put values into the fifo until is full */ - for (i = 20; kfifo_put(&test, &i); i++) + for (i = 20; kfifo_put(&test, i); i++) ; printk(KERN_INFO "queue len: %u\n", kfifo_len(&test));