[PATCH 5.15 316/691] scsi: mac_scsi: Refactor polling loop