[PATCH 5.12 249/700] spi: Avoid undefined behaviour when counting unused native CSs