9p: remove unused 'p9_client' struct pointer
Get rid of the useless '*clnt' variable. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
This commit is contained in:
Родитель
2e7babfa89
Коммит
4d555e3de4
|
@ -461,14 +461,12 @@ v9fs_file_write_internal(struct inode *inode, struct p9_fid *fid,
|
||||||
int n;
|
int n;
|
||||||
loff_t i_size;
|
loff_t i_size;
|
||||||
size_t total = 0;
|
size_t total = 0;
|
||||||
struct p9_client *clnt;
|
|
||||||
loff_t origin = *offset;
|
loff_t origin = *offset;
|
||||||
unsigned long pg_start, pg_end;
|
unsigned long pg_start, pg_end;
|
||||||
|
|
||||||
p9_debug(P9_DEBUG_VFS, "data %p count %d offset %x\n",
|
p9_debug(P9_DEBUG_VFS, "data %p count %d offset %x\n",
|
||||||
data, (int)count, (int)*offset);
|
data, (int)count, (int)*offset);
|
||||||
|
|
||||||
clnt = fid->clnt;
|
|
||||||
do {
|
do {
|
||||||
n = p9_client_write(fid, NULL, data+total, origin+total, count);
|
n = p9_client_write(fid, NULL, data+total, origin+total, count);
|
||||||
if (n <= 0)
|
if (n <= 0)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче