Skip to content
Snippets Groups Projects
Commit 798eef5c authored by Nikita Danilov's avatar Nikita Danilov
Browse files

brw_check_page(): suppress "use before initialization" compiler warning.

parent 46055572
No related branches found
No related tags found
No related merge requests found
...@@ -150,7 +150,7 @@ int ...@@ -150,7 +150,7 @@ int
brw_check_page (cfs_page_t *pg, int pattern, __u64 magic) brw_check_page (cfs_page_t *pg, int pattern, __u64 magic)
{ {
char *addr = cfs_page_address(pg); char *addr = cfs_page_address(pg);
__u64 data; __u64 data = 0; /* make compiler happy */
int i; int i;
LASSERT (addr != NULL); LASSERT (addr != NULL);
...@@ -253,7 +253,7 @@ brw_client_prep_rpc (sfw_test_unit_t *tsu, ...@@ -253,7 +253,7 @@ brw_client_prep_rpc (sfw_test_unit_t *tsu,
req = &rpc->crpc_reqstmsg.msg_body.brw_reqst; req = &rpc->crpc_reqstmsg.msg_body.brw_reqst;
req->brw_flags = flags; req->brw_flags = flags;
req->brw_rw = breq->blk_opc; req->brw_rw = breq->blk_opc;
req->brw_len = npg * CFS_PAGE_SIZE; req->brw_len = npg * CFS_PAGE_SIZE;
*rpcpp = rpc; *rpcpp = rpc;
...@@ -401,7 +401,7 @@ brw_server_handle (srpc_server_rpc_t *rpc) ...@@ -401,7 +401,7 @@ brw_server_handle (srpc_server_rpc_t *rpc)
reply->brw_status = EINVAL; reply->brw_status = EINVAL;
return 0; return 0;
} }
reply->brw_status = 0; reply->brw_status = 0;
rc = sfw_alloc_pages(rpc, reqst->brw_len / CFS_PAGE_SIZE, rc = sfw_alloc_pages(rpc, reqst->brw_len / CFS_PAGE_SIZE,
reqst->brw_rw == LST_BRW_WRITE); reqst->brw_rw == LST_BRW_WRITE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment