Removed unused kernel arguments and fixed a CL compiler error.