Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: dock: fix some coding style issues

Fix some coding style issues reported by checkpatch.pl, including
following types:

WARNING: Missing a blank line after declarations
ERROR: spaces required around that ':'
WARNING: Statements should start on a tabstop

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Xiaofei Tan and committed by
Rafael J. Wysocki
6ee4bdc2 d0fb66e9

+5 -2
+5 -2
drivers/acpi/dock.c
··· 271 271 272 272 if (!acpi_device_enumerated(adev)) { 273 273 int ret = acpi_bus_scan(adev->handle); 274 + 274 275 if (ret) 275 276 dev_dbg(&adev->dev, "scan error %d\n", -ret); 276 277 } ··· 503 502 struct device_attribute *attr, char *buf) 504 503 { 505 504 struct dock_station *dock_station = dev->platform_data; 505 + 506 506 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags); 507 507 508 508 } ··· 525 523 begin_undock(dock_station); 526 524 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); 527 525 acpi_scan_lock_release(); 528 - return ret ? ret: count; 526 + return ret ? ret : count; 529 527 } 530 528 static DEVICE_ATTR_WO(undock); 531 529 ··· 537 535 { 538 536 unsigned long long lbuf; 539 537 struct dock_station *dock_station = dev->platform_data; 538 + 540 539 acpi_status status = acpi_evaluate_integer(dock_station->handle, 541 540 "_UID", NULL, &lbuf); 542 541 if (ACPI_FAILURE(status)) 543 - return 0; 542 + return 0; 544 543 545 544 return snprintf(buf, PAGE_SIZE, "%llx\n", lbuf); 546 545 }