staging: vc04_services: don't increment service refcount when it's not needed
authorMarcelo Diop-Gonzalez <marcgonzalez@google.com>
Wed, 12 Feb 2020 18:43:33 +0000 (13:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Feb 2020 21:40:44 +0000 (13:40 -0800)
commita2203cfe0d847ea3a84c75ccfdd600e92d9c5e62
tree21a27064d64039d3f2796ec2316e55421b623316
parent3c27a36f2711880de5e6629fbba71bfdbbf47ceb
staging: vc04_services: don't increment service refcount when it's not needed

There are a few places where a service's reference count is incremented,
something quick is done, and the refcount is dropped. This can be made
a little simpler/faster by not grabbing a reference in these cases.

Signed-off-by: Marcelo Diop-Gonzalez <marcgonzalez@google.com>
Link: https://lore.kernel.org/r/ac6186ac888f1acf489b5b504efcba8b0d6a8b25.1581532523.git.marcgonzalez@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h