Skip to content

Conversation

@guillemj
Copy link
Contributor

Various small code fixes and cleanups.

Check whether the system has LFS, and if so enable it. This should be
ABI safe for the shared library as it does not expose any problematic type.

Signed-off-by: Guillem Jover <[email protected]>
Having a test that never returns is not very nice, as it makes trying to
run it during build or on a CI system hang.

Signed-off-by: Guillem Jover <[email protected]>
Follow the same pattern in sysfs_read_attribute() as the rest of the
code, and protect against wrong usage of the freed pointer.

Signed-off-by: Guillem Jover <[email protected]>
The variable attr is only used in the other if branch, to check whether
it is NULL.

Signed-off-by: Guillem Jover <[email protected]>
The return value from write is never used nor checked, as we close() and
immediately return.

Signed-off-by: Guillem Jover <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant