equal
deleted
inserted
replaced
143 return 0; |
143 return 0; |
144 |
144 |
145 ec_sdo_request_clear_data(req); |
145 ec_sdo_request_clear_data(req); |
146 |
146 |
147 if (!(req->data = (uint8_t *) kmalloc(size, GFP_KERNEL))) { |
147 if (!(req->data = (uint8_t *) kmalloc(size, GFP_KERNEL))) { |
148 EC_ERR("Failed to allocate %u bytes of SDO memory.\n", size); |
148 EC_ERR("Failed to allocate %zu bytes of SDO memory.\n", size); |
149 return -ENOMEM; |
149 return -ENOMEM; |
150 } |
150 } |
151 |
151 |
152 req->mem_size = size; |
152 req->mem_size = size; |
153 req->data_size = 0; |
153 req->data_size = 0; |