ACPI / debugger: remove some unneeded conditions
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Dec 2015 07:23:03 +0000 (10:23 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Dec 2015 00:29:40 +0000 (01:29 +0100)
commit436db5ce0d0e892d2f7327dd7ffd573c5fb9e6cb
treeba2aded9eacd34d75e92ee2b48ec408c417bb64d
parent73af2d590ab1b7bc7c3fc3e6933d5dcd379c9c2e
ACPI / debugger: remove some unneeded conditions

"count" is unsigned so checking for less than zero here causes a static
checker warning.  And really it's better to let the access_ok() check
fail if the user passes in a NULL "buf" pointer because -EFAULT is the
correct error code.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_dbg.c