* [PATCH] trivial: delete 2 unreachable statements in drivers/block/paride/pf.c
@ 2005-09-20 17:37 Norbert Kiesel
0 siblings, 0 replies; only message in thread
From: Norbert Kiesel @ 2005-09-20 17:37 UTC (permalink / raw)
To: linux-kernel; +Cc: Jens Axboe
[-- Attachment #1: Type: text/plain, Size: 769 bytes --]
Hi,
the last patch from Jens Axboe for drivers/block/paride/pf.c
introduced pf_end_request() which sets pf_req to NULL. The trivial
patch below deletes 2 unreachable statements. I asked Jens about it
and he said: "Yeah that is a leftover, harmless though."
Best,
Norbert
diff -u a/drivers/block/paride/pf.c b/drivers/block/paride/pf.c
--- a/drivers/block/paride/pf.c 2005-09-20 10:24:54.000000000 -0700
+++ b/drivers/block/paride/pf.c 2005-09-20 10:25:55.000000000 -0700
@@ -807,10 +807,6 @@
return 1;
spin_lock_irqsave(&pf_spin_lock, saved_flags);
pf_end_request(1);
- if (pf_req) {
- pf_count = pf_req->current_nr_sectors;
- pf_buf = pf_req->buffer;
- }
spin_unlock_irqrestore(&pf_spin_lock, saved_flags);
return 1;
}
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-20 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-20 17:37 [PATCH] trivial: delete 2 unreachable statements in drivers/block/paride/pf.c Norbert Kiesel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox