eeepc-laptop: remove redundant NULL checks
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 3 Dec 2009 07:45:00 +0000 (07:45 +0000)
committerLen Brown <len.brown@intel.com>
Wed, 9 Dec 2009 20:54:31 +0000 (15:54 -0500)
commita2a1d36c78e90977e4ded9a20a7d8d27d84b13e4
tree2e6cdeeae0066fb72e105ab1029c057c8d49996c
parent13f70029daa3cd7f9983e4aec82f32939b1a6e6a
eeepc-laptop: remove redundant NULL checks

eeepc_hotk_notify() cannot be called with ehotk == NULL or bd == NULL.
We check both variables for allocation failure and would bail out before
the notifier is registered.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c