mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 15:43:35 -04:00
staging: vchi: Get rid of effect less expression
It was probably there to trick compilers into ignoring unused variables, which isn't needed in Linux. Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Link: https://lore.kernel.org/r/20200629150945.10720-22-nsaenzjulienne@suse.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
469fbb24ce
commit
6c53da0b2f
@@ -288,8 +288,6 @@ static struct vchi_service *service_alloc(struct vchiq_instance *instance,
|
||||
{
|
||||
struct vchi_service *service = kzalloc(sizeof(struct vchi_service), GFP_KERNEL);
|
||||
|
||||
(void)instance;
|
||||
|
||||
if (service) {
|
||||
if (!vchiu_queue_init(&service->queue, 64)) {
|
||||
service->callback = setup->callback;
|
||||
|
||||
Reference in New Issue
Block a user