Skip to content

Commit f60b9d4

Browse files
aleksamagickagroeck
authored andcommitted
hwmon: (aquacomputer_d5next) Remove unneeded CONFIG_DEBUG_FS #ifdef
Remove the #ifdef check for CONFIG_DEBUG_FS and the empty variant of aqc_debugfs_init(), because the debugfs functions already do nothing if debugfs isn't enabled. Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com> Link: https://lore.kernel.org/r/20231216140754.336775-1-savicaleksa83@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 4ec21ee commit f60b9d4

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

drivers/hwmon/aquacomputer_d5next.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,8 +1476,6 @@ static int aqc_raw_event(struct hid_device *hdev, struct hid_report *report, u8
14761476
return 0;
14771477
}
14781478

1479-
#ifdef CONFIG_DEBUG_FS
1480-
14811479
static int serial_number_show(struct seq_file *seqf, void *unused)
14821480
{
14831481
struct aqc_data *priv = seqf->private;
@@ -1527,14 +1525,6 @@ static void aqc_debugfs_init(struct aqc_data *priv)
15271525
debugfs_create_file("power_cycles", 0444, priv->debugfs, priv, &power_cycles_fops);
15281526
}
15291527

1530-
#else
1531-
1532-
static void aqc_debugfs_init(struct aqc_data *priv)
1533-
{
1534-
}
1535-
1536-
#endif
1537-
15381528
static int aqc_probe(struct hid_device *hdev, const struct hid_device_id *id)
15391529
{
15401530
struct aqc_data *priv;

0 commit comments

Comments
 (0)