staging: vchiq_core: Simplify VCHIQ init
authorStefan Wahren <stefan.wahren@i2se.com>
Thu, 25 May 2017 22:26:19 +0000 (00:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 May 2017 15:02:30 +0000 (17:02 +0200)
commit7c35c6af0cd6896f6e293cf617a5e27116735e5b
tree5e00577c30c1ab7cf62d3abd978fef20987161fc
parent244156ca90dceaec2bda8f9b664489d23a5b451f
staging: vchiq_core: Simplify VCHIQ init

Since the ARM side of VCHIQ support only 1 state, we could simplify
the init code. This makes it possible to avoid BUG_ON and a theoretical
overflow of id.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c