NULL pointer doesn't exist in KM_SLEEP

The KM_SLEEP is defined as GFP_KERNEL. It will sleep and never fail. So remove the uncessary code as possible.