Commit ccd1443b authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by James Bottomley

[SCSI] osst: fix if (...) \n #if... cases missing semicolons when false

Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Acked-by: default avatarWillem Riede <osst@riede.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent ef49c32b
...@@ -593,10 +593,11 @@ static int osst_verify_frame(struct osst_tape * STp, int frame_seq_number, int q ...@@ -593,10 +593,11 @@ static int osst_verify_frame(struct osst_tape * STp, int frame_seq_number, int q
if (aux->frame_type != OS_FRAME_TYPE_DATA && if (aux->frame_type != OS_FRAME_TYPE_DATA &&
aux->frame_type != OS_FRAME_TYPE_EOD && aux->frame_type != OS_FRAME_TYPE_EOD &&
aux->frame_type != OS_FRAME_TYPE_MARKER) { aux->frame_type != OS_FRAME_TYPE_MARKER) {
if (!quiet) if (!quiet) {
#if DEBUG #if DEBUG
printk(OSST_DEB_MSG "%s:D: Skipping frame, frame type %x\n", name, aux->frame_type); printk(OSST_DEB_MSG "%s:D: Skipping frame, frame type %x\n", name, aux->frame_type);
#endif #endif
}
goto err_out; goto err_out;
} }
if (aux->frame_type == OS_FRAME_TYPE_EOD && if (aux->frame_type == OS_FRAME_TYPE_EOD &&
...@@ -606,11 +607,12 @@ static int osst_verify_frame(struct osst_tape * STp, int frame_seq_number, int q ...@@ -606,11 +607,12 @@ static int osst_verify_frame(struct osst_tape * STp, int frame_seq_number, int q
goto err_out; goto err_out;
} }
if (frame_seq_number != -1 && ntohl(aux->frame_seq_num) != frame_seq_number) { if (frame_seq_number != -1 && ntohl(aux->frame_seq_num) != frame_seq_number) {
if (!quiet) if (!quiet) {
#if DEBUG #if DEBUG
printk(OSST_DEB_MSG "%s:D: Skipping frame, sequence number %u (expected %d)\n", printk(OSST_DEB_MSG "%s:D: Skipping frame, sequence number %u (expected %d)\n",
name, ntohl(aux->frame_seq_num), frame_seq_number); name, ntohl(aux->frame_seq_num), frame_seq_number);
#endif #endif
}
goto err_out; goto err_out;
} }
if (aux->frame_type == OS_FRAME_TYPE_MARKER) { if (aux->frame_type == OS_FRAME_TYPE_MARKER) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment