@@ -310,27 +310,13 @@ static int test_dev_config_update_bool(const char *buf, size_t size,
310
310
return ret ;
311
311
}
312
312
313
- static ssize_t
314
- test_dev_config_show_bool (char * buf ,
315
- bool config )
313
+ static ssize_t test_dev_config_show_bool (char * buf , bool val )
316
314
{
317
- bool val ;
318
-
319
- mutex_lock (& test_fw_mutex );
320
- val = config ;
321
- mutex_unlock (& test_fw_mutex );
322
-
323
315
return snprintf (buf , PAGE_SIZE , "%d\n" , val );
324
316
}
325
317
326
- static ssize_t test_dev_config_show_int (char * buf , int cfg )
318
+ static ssize_t test_dev_config_show_int (char * buf , int val )
327
319
{
328
- int val ;
329
-
330
- mutex_lock (& test_fw_mutex );
331
- val = cfg ;
332
- mutex_unlock (& test_fw_mutex );
333
-
334
320
return snprintf (buf , PAGE_SIZE , "%d\n" , val );
335
321
}
336
322
@@ -354,14 +340,8 @@ static int test_dev_config_update_u8(const char *buf, size_t size, u8 *cfg)
354
340
return size ;
355
341
}
356
342
357
- static ssize_t test_dev_config_show_u8 (char * buf , u8 cfg )
343
+ static ssize_t test_dev_config_show_u8 (char * buf , u8 val )
358
344
{
359
- u8 val ;
360
-
361
- mutex_lock (& test_fw_mutex );
362
- val = cfg ;
363
- mutex_unlock (& test_fw_mutex );
364
-
365
345
return snprintf (buf , PAGE_SIZE , "%u\n" , val );
366
346
}
367
347
0 commit comments