struct file *filp;
loff_t offset;
size_t count;
- int r, xfer, ret;
+ int xfer, ret;
+ int r = 0;
/* read our parameters */
smp_rmb();
filp = dev->xfer_file;
offset = dev->xfer_file_offset;
- r = count = dev->xfer_file_length;
+ count = dev->xfer_file_length;
- DBG(cdev, "send_file_work(%lld %d)\n", offset, count);
+ DBG(cdev, "send_file_work(%lld %u)\n", offset, count);
while (count > 0) {
/* get an idle tx request to use */
struct file *filp;
loff_t offset;
size_t count;
- int r, ret, cur_buf = 0;
+ int ret, cur_buf = 0;
+ int r = 0;
/* read our parameters */
smp_rmb();
filp = dev->xfer_file;
offset = dev->xfer_file_offset;
- r = count = dev->xfer_file_length;
+ count = dev->xfer_file_length;
- DBG(cdev, "receive_file_work(%d)\n", count);
+ DBG(cdev, "receive_file_work(%u)\n", count);
while (count > 0 || write_req) {
if (count > 0) {