cppcheck: some cleaning + use CHECK_OPENCL

Change-Id: I94d55c196f8bee8d770889015aaa43899183ca9a