Remove unused parameter

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
Slawomir Jankowski 2020-03-27 11:24:52 +01:00
parent 1c9312842a
commit f516ed62e3
3 changed files with 3 additions and 7 deletions

View File

@ -116,7 +116,7 @@ const struct ocf_io_if *ocf_get_io_if(ocf_req_cache_mode_t req_cache_mode)
return cache_mode_io_if_map[req_cache_mode]; return cache_mode_io_if_map[req_cache_mode];
} }
struct ocf_request *ocf_engine_pop_req(ocf_cache_t cache, ocf_queue_t q) struct ocf_request *ocf_engine_pop_req(ocf_queue_t q)
{ {
unsigned long lock_flags = 0; unsigned long lock_flags = 0;
struct ocf_request *req; struct ocf_request *req;

View File

@ -66,8 +66,7 @@ static inline bool ocf_req_cache_mode_has_lazy_write(ocf_req_cache_mode_t mode)
bool ocf_fallback_pt_is_on(ocf_cache_t cache); bool ocf_fallback_pt_is_on(ocf_cache_t cache);
struct ocf_request *ocf_engine_pop_req(struct ocf_cache *cache, struct ocf_request *ocf_engine_pop_req(struct ocf_queue *q);
struct ocf_queue *q);
int ocf_engine_hndl_req(struct ocf_request *req); int ocf_engine_hndl_req(struct ocf_request *req);

View File

@ -86,13 +86,10 @@ void ocf_io_handle(struct ocf_io *io, void *opaque)
void ocf_queue_run_single(ocf_queue_t q) void ocf_queue_run_single(ocf_queue_t q)
{ {
struct ocf_request *io_req = NULL; struct ocf_request *io_req = NULL;
ocf_cache_t cache;
OCF_CHECK_NULL(q); OCF_CHECK_NULL(q);
cache = q->cache; io_req = ocf_engine_pop_req(q);
io_req = ocf_engine_pop_req(cache, q);
if (!io_req) if (!io_req)
return; return;