]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: vc04_services: Remove function vchiu_queue_is_full()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 25 Jun 2019 18:17:01 +0000 (23:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jun 2019 01:58:47 +0000 (09:58 +0800)
Remove unused function vchiu_queue_is_full.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.h

index 8ee85c5e6f77e97fc2fd2c75a75f5e22ba61bbec..5e6d3035dc05864339262b2f005366328c28d48d 100644 (file)
@@ -39,11 +39,6 @@ int vchiu_queue_is_empty(struct vchiu_queue *queue)
        return queue->read == queue->write;
 }
 
-int vchiu_queue_is_full(struct vchiu_queue *queue)
-{
-       return queue->write == queue->read + queue->size;
-}
-
 void vchiu_queue_push(struct vchiu_queue *queue, struct vchiq_header *header)
 {
        if (!queue->initialized)
index ee14594681718bf4cdc26cddf49377de1129cca6..f03a4250de0d264baae152ad64ef4553718cccd4 100644 (file)
@@ -40,7 +40,6 @@ extern int  vchiu_queue_init(struct vchiu_queue *queue, int size);
 extern void vchiu_queue_delete(struct vchiu_queue *queue);
 
 extern int vchiu_queue_is_empty(struct vchiu_queue *queue);
-extern int vchiu_queue_is_full(struct vchiu_queue *queue);
 
 extern void vchiu_queue_push(struct vchiu_queue *queue,
                             struct vchiq_header *header);