File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ int wiidebug_init(struct wiimote_data *wdata)
173
173
{
174
174
struct wiimote_debug * dbg ;
175
175
unsigned long flags ;
176
- int ret = - ENOMEM ;
177
176
178
177
dbg = kzalloc (sizeof (* dbg ), GFP_KERNEL );
179
178
if (!dbg )
@@ -183,25 +182,16 @@ int wiidebug_init(struct wiimote_data *wdata)
183
182
184
183
dbg -> eeprom = debugfs_create_file ("eeprom" , S_IRUSR ,
185
184
dbg -> wdata -> hdev -> debug_dir , dbg , & wiidebug_eeprom_fops );
186
- if (!dbg -> eeprom )
187
- goto err ;
188
185
189
186
dbg -> drm = debugfs_create_file ("drm" , S_IRUSR ,
190
187
dbg -> wdata -> hdev -> debug_dir , dbg , & wiidebug_drm_fops );
191
- if (!dbg -> drm )
192
- goto err_drm ;
193
188
194
189
spin_lock_irqsave (& wdata -> state .lock , flags );
195
190
wdata -> debug = dbg ;
196
191
spin_unlock_irqrestore (& wdata -> state .lock , flags );
197
192
198
193
return 0 ;
199
194
200
- err_drm :
201
- debugfs_remove (dbg -> eeprom );
202
- err :
203
- kfree (dbg );
204
- return ret ;
205
195
}
206
196
207
197
void wiidebug_deinit (struct wiimote_data * wdata )
You can’t perform that action at this time.
0 commit comments