[libata] fix smatch warning for zpodd_wake_dev
authorAaron Lu <aaron.lu@intel.com>
Mon, 28 Jan 2013 05:08:02 +0000 (13:08 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 20 Feb 2013 22:14:03 +0000 (17:14 -0500)
Fix a smatch warning caused by an useless pointer check.
The context parameter (aka. ata_dev) will never be NULL until we remove
the acpi notification handler, so it is pointless to check it for NULL.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

No differences found