Skip to content

Commit 39cf241

Browse files
ovalentiMolter73
andauthored
Small refactoring
Co-authored-by: Mauro Ezequiel Moltrasio <mmoltras@redhat.com>
1 parent 194e1b1 commit 39cf241

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fact-ebpf/src/bpf/file.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ __always_inline static bool is_monitored(struct bound_path_t* path) {
7979
}
8080

8181
__always_inline static int get_owner_uid_gid(struct dentry* dentry, unsigned int* uid, unsigned int* gid) {
82-
struct inode* inode;
83-
84-
inode = BPF_CORE_READ(dentry, d_inode);
82+
struct inode* inode = BPF_CORE_READ(dentry, d_inode);
8583
if (inode == NULL) {
8684
return !0;
8785
}

0 commit comments

Comments
 (0)