Re: [PATCH 24/32] ide-tape: remove unreachable code chunk
- From: Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx>
- Date: Sun, 27 Jan 2008 20:41:52 +0100
On Sunday 27 January 2008, Borislav Petkov wrote:
From: Borislav Petkov <bbpetkov@xxxxxxxx>
tape->speed_ctl is set to 1 in idetape_setup(), but, in calculate_speeds() its
value is tested for being 0, 1, or 2. Remove the if-branches where
tape->speed_ctl != 1 since they are never executed.
Also, rename calculate_speeds() by adding driver's prefix as is with the other
function names.
Signed-off-by: Borislav Petkov <bbpetkov@xxxxxxxx>
This change is fine but it seems to depend on "ghost" patch #23. ;)
Please move it near the beginning of the series when resubmitting.
Thanks,
Bart
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 06/32] ide-tape: remove IDETAPE_DEBUG_BUGS
- From: Borislav Petkov
- [PATCH 24/32] ide-tape: remove unreachable code chunk
- From: Borislav Petkov
- [PATCH 06/32] ide-tape: remove IDETAPE_DEBUG_BUGS
- Prev by Date: Re: [PATCH 10/32] ide-tape: remove struct idetape_read_position_result_t
- Next by Date: Re: [PATCH 31/32] ide-tape: remove idetape_config_t typedef
- Previous by thread: [PATCH 24/32] ide-tape: remove unreachable code chunk
- Next by thread: [PATCH 32/32] ide-tape: cleanup the remaining codestyle issues
- Index(es):
Relevant Pages
|