File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -2200,7 +2200,7 @@ static int gigaset_initcshw(struct cardstate *cs)
2200
2200
{
2201
2201
struct bas_cardstate * ucs ;
2202
2202
2203
- cs -> hw .bas = ucs = kmalloc (sizeof * ucs , GFP_KERNEL );
2203
+ cs -> hw .bas = ucs = kzalloc (sizeof ( * ucs ) , GFP_KERNEL );
2204
2204
if (!ucs ) {
2205
2205
pr_err ("out of memory\n" );
2206
2206
return - ENOMEM ;
@@ -2212,15 +2212,7 @@ static int gigaset_initcshw(struct cardstate *cs)
2212
2212
return - ENOMEM ;
2213
2213
}
2214
2214
2215
- ucs -> urb_cmd_in = NULL ;
2216
- ucs -> urb_cmd_out = NULL ;
2217
- ucs -> rcvbuf = NULL ;
2218
- ucs -> rcvbuf_size = 0 ;
2219
-
2220
2215
spin_lock_init (& ucs -> lock );
2221
- ucs -> pending = 0 ;
2222
-
2223
- ucs -> basstate = 0 ;
2224
2216
setup_timer (& ucs -> timer_ctrl , req_timeout , (unsigned long ) cs );
2225
2217
setup_timer (& ucs -> timer_atrdy , atrdy_timeout , (unsigned long ) cs );
2226
2218
setup_timer (& ucs -> timer_cmd_in , cmd_in_timeout , (unsigned long ) cs );
You can’t perform that action at this time.
0 commit comments