[CIFS] remove some redundant null pointer checks