Loading drivers/hid/hid-wiimote-debug.c +0 −10 Original line number Diff line number Diff line Loading @@ -173,7 +173,6 @@ int wiidebug_init(struct wiimote_data *wdata) { struct wiimote_debug *dbg; unsigned long flags; int ret = -ENOMEM; dbg = kzalloc(sizeof(*dbg), GFP_KERNEL); if (!dbg) Loading @@ -183,13 +182,9 @@ int wiidebug_init(struct wiimote_data *wdata) dbg->eeprom = debugfs_create_file("eeprom", S_IRUSR, dbg->wdata->hdev->debug_dir, dbg, &wiidebug_eeprom_fops); if (!dbg->eeprom) goto err; dbg->drm = debugfs_create_file("drm", S_IRUSR, dbg->wdata->hdev->debug_dir, dbg, &wiidebug_drm_fops); if (!dbg->drm) goto err_drm; spin_lock_irqsave(&wdata->state.lock, flags); wdata->debug = dbg; Loading @@ -197,11 +192,6 @@ int wiidebug_init(struct wiimote_data *wdata) return 0; err_drm: debugfs_remove(dbg->eeprom); err: kfree(dbg); return ret; } void wiidebug_deinit(struct wiimote_data *wdata) Loading Loading
drivers/hid/hid-wiimote-debug.c +0 −10 Original line number Diff line number Diff line Loading @@ -173,7 +173,6 @@ int wiidebug_init(struct wiimote_data *wdata) { struct wiimote_debug *dbg; unsigned long flags; int ret = -ENOMEM; dbg = kzalloc(sizeof(*dbg), GFP_KERNEL); if (!dbg) Loading @@ -183,13 +182,9 @@ int wiidebug_init(struct wiimote_data *wdata) dbg->eeprom = debugfs_create_file("eeprom", S_IRUSR, dbg->wdata->hdev->debug_dir, dbg, &wiidebug_eeprom_fops); if (!dbg->eeprom) goto err; dbg->drm = debugfs_create_file("drm", S_IRUSR, dbg->wdata->hdev->debug_dir, dbg, &wiidebug_drm_fops); if (!dbg->drm) goto err_drm; spin_lock_irqsave(&wdata->state.lock, flags); wdata->debug = dbg; Loading @@ -197,11 +192,6 @@ int wiidebug_init(struct wiimote_data *wdata) return 0; err_drm: debugfs_remove(dbg->eeprom); err: kfree(dbg); return ret; } void wiidebug_deinit(struct wiimote_data *wdata) Loading