As recent change means that we now dereference 'dev' before testingfor NULL.

That means either the change was wrong, or the test isn't needed.As this function is only called from one driver (bq27x000_battery) andit always passed a non-NULL dev, it seems good to assume that thetest isn't needed.