Skip to content

Commit a934c4c

Browse files
sandip4nCalcProgrammer1
authored andcommitted
i2c-smbus: linux: Remove stray whitespaces
Remove stray whitespaces in newlines. Signed-off-by: Sandipan Das <[email protected]>
1 parent 49a6905 commit a934c4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

i2c_smbus/i2c_smbus_linux.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ s32 i2c_smbus_linux::i2c_xfer(u8 addr, char read_write, int* size, u8* data)
5959
}
6060

6161
free(msg.buf);
62-
62+
6363
return ret_val;
6464
}
6565

@@ -108,7 +108,7 @@ bool i2c_smbus_linux_detect()
108108
if(test_fd)
109109
{
110110
memset(device_string, 0x00, sizeof(device_string));
111-
111+
112112
if(read(test_fd, device_string, sizeof(device_string)) < 0)
113113
{
114114
LOG_WARNING("[i2c_smbus_linux] Failed to read i2c device name");
@@ -158,7 +158,7 @@ bool i2c_smbus_linux_detect()
158158
{
159159
LOG_WARNING("[i2c_smbus_linux] Failed to read i2c device PCI vendor ID");
160160
}
161-
161+
162162
buff[strlen(buff) - 1] = 0x00;
163163
pci_vendor = strtoul(buff, NULL, 16);
164164
close(test_fd);
@@ -187,7 +187,7 @@ bool i2c_smbus_linux_detect()
187187
if (test_fd >= 0)
188188
{
189189
memset(buff, 0x00, sizeof(buff));
190-
190+
191191
if(read(test_fd, buff, sizeof(buff)) < 0)
192192
{
193193
LOG_WARNING("[i2c_smbus_linux] Failed to read i2c device PCI subvendor ID");
@@ -214,7 +214,7 @@ bool i2c_smbus_linux_detect()
214214
pci_subsystem_device = strtoul(buff, NULL, 16);
215215
close(test_fd);
216216
}
217-
217+
218218
strcpy(device_string, "/dev/");
219219
strcat(device_string, ent->d_name);
220220
test_fd = open(device_string, O_RDWR);

0 commit comments

Comments
 (0)