projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of uninitialized_var()
[fio.git]
/
engines
/
splice.c
diff --git
a/engines/splice.c
b/engines/splice.c
index 427b4e5fc85d68071977ed3cdf52b08cc06daef0..ca7997b70aeae1142263a580acdfb555c6fd8b2c 100644
(file)
--- a/
engines/splice.c
+++ b/
engines/splice.c
@@
-204,7
+204,7
@@
static int fio_splice_write(struct thread_data *td, struct io_u *io_u)
static int fio_spliceio_queue(struct thread_data *td, struct io_u *io_u)
{
struct spliceio_data *sd = td->io_ops->data;
static int fio_spliceio_queue(struct thread_data *td, struct io_u *io_u)
{
struct spliceio_data *sd = td->io_ops->data;
- int
uninitialized_var(ret)
;
+ int
ret = 0
;
fio_ro_check(td, io_u);
fio_ro_check(td, io_u);
@@
-284,7
+284,7
@@
static int fio_spliceio_init(struct thread_data *td)
* buffers. Just set ->odirect to force that.
*/
if (td_read(td))
* buffers. Just set ->odirect to force that.
*/
if (td_read(td))
- td->o.
odirect
= 1;
+ td->o.
mem_align
= 1;
td->io_ops->data = sd;
return 0;
td->io_ops->data = sd;
return 0;
@@
-311,7
+311,7
@@
static struct ioengine_ops ioengine = {
*/
static int fio_spliceio_init(struct thread_data fio_unused *td)
{
*/
static int fio_spliceio_init(struct thread_data fio_unused *td)
{
-
fprintf(stderr,
"fio: splice not available\n");
+
log_err(
"fio: splice not available\n");
return 1;
}
return 1;
}