Skip to contentSkip to conversation

HID: alps: clean up indentation issue

PATCH In review Colin King 2 participants 2 messages Sep 20, 2020 – Sep 22, 2020

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 HID: alps: clean up indentation issue

From: Colin Ian King <[email protected]>

There is an if statement that is indented too deeply, fix this by removing the extraneous tab.

---
 drivers/hid/hid-alps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-alps.c +1 -1
index a9c2de95c5e2..3feaece13ade 100644
@@ -526,7 +526,7 @@ static int u1_init(struct hid_device *hdev, struct alps_dev *pri_data)
 
 	ret = u1_read_write_register(hdev, ADDRESS_U1_NUM_SENS_Y,
 			&sen_line_num_y, 0, true);
-		if (ret < 0) {
+	if (ret < 0) {
 		dev_err(&hdev->dev, "failed U1_NUM_SENS_Y (%d)\n", ret);
 		goto exit;
 	}
Signature · 1 line
2.27.0
maintainer
#1 lore raw
Quoted 15 lines · Colin King

From: Colin Ian King <[email protected]>

There is an if statement that is indented too deeply, fix this by removing the extraneous tab.

---
 drivers/hid/hid-alps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-alps.c +0 -0
index a9c2de95c5e2..3feaece13ade 100644

drivers/hid/hid-alps.c static int u1_init(struct hid_device *hdev, struct alps_dev *pri_data) · line 530

Quoted 6 lines
drivers/hid/hid-alps.c +1 -1
@@ -526,7 +526,7 @@ static int u1_init(struct hid_device *hdev, struct alps_dev *pri_data)
 
 	ret = u1_read_write_register(hdev, ADDRESS_U1_NUM_SENS_Y,
 			&sen_line_num_y, 0, true);
-		if (ret < 0) {
+	if (ret < 0) {
 		dev_err(&hdev->dev, "failed U1_NUM_SENS_Y (%d)\n", ret);

I am usually not taking whitespace fixes, but this one actually really does improve code readability, so I am taking this one. Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs