Skip to content

Commit ecc5570

Browse files
gregkhdavem330
authored andcommitted
fm10k: no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Jeff Kirsher <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e6882aa commit ecc5570

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ void fm10k_dbg_q_vector_init(struct fm10k_q_vector *q_vector)
160160
snprintf(name, sizeof(name), "q_vector.%03d", q_vector->v_idx);
161161

162162
q_vector->dbg_q_vector = debugfs_create_dir(name, interface->dbg_intfc);
163-
if (!q_vector->dbg_q_vector)
164-
return;
165163

166164
/* Generate a file for each rx ring in the q_vector */
167165
for (i = 0; i < q_vector->tx.count; i++) {

0 commit comments

Comments
 (0)