Re: [PATCH 23/32] ide-tape: struct idetape_tape_t: shorten member names

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Borislav Petkov <petkovbb@...>
Cc: <linux-kernel@...>, <linux-ide@...>, Borislav Petkov <bbpetkov@...>
Date: Saturday, February 2, 2008 - 7:43 pm

Hi,

On Sunday 27 January 2008, Borislav Petkov wrote:

Could you factor out dead code removal to a separate (pre-)patch?


Even if this patch contains only trivial changes, the amount of them
and the fact that it intermixes different logical changes (shortening
names, dead code removal and comments beautification) makes it somehow
non-trivial to review.

General comment:
please have some mercy on the reviewer (in this case me ;) and spread
the changes across more patches (it should also be easier for you since
with more patches it is more likely that the more changes get applied
the first time and you will have less code to recast/resubmit).


hmm, this comment looks ugly now because of an extra long first line...

[...]


it is not worth doing it for the sake of two characters saved,
(especially when we take into the account that both variables are
 removed by patch #26)

[...]


'first_frame' would be more appropriate


this one is write-only, can be removed

[...]


this change belongs to patch #21


how's about blk_size?

[...]


active_data_rq?


not worth it

[...]


there is also 'first_stage' so the above comment seems valueable


'lock' or 'queue_lock' would be more appropriate

[...]


please don't use uint and ulong typedefs


all of the above renames seem to be not worth it

the reason is that this change sets the number of people who understand (at
least partially) pipelined operation from to near to zero to a definitive zero


ditto

[...]


minor CodingStyle issue:

			(void)ide_do_drive_cmd(drive, tape->act_data_rq,
					       ide_end);

[...]


min_t(unsigned int, ..., ...)

[...]


CodingStyle

				if (mt_count < tape->blk_sz ||
				    mt_count % tape->blk_sz)

[...]


CodingStyle

			mtget.mt_dsreg =
				((tape->blk_sz * tape->user_bs_factor)
				 << MT_ST_BLKSIZE_SHIFT) & MT_ST_BLKSIZE_MASK;

or some other better way...

[...]


'vendor_id' and 'product_id' can also be converted to local variables

[...]


ulong -> unsigned long

Please recast/resubmit.

Thanks,
Bart
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 06/32] ide-tape: remove IDETAPE_DEBUG_BUGS, Borislav Petkov, (Sun Jan 27, 5:47 am)
Re: [PATCH 06/32] ide-tape: remove IDETAPE_DEBUG_BUGS, Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 11:35 am)
Re: [PATCH 06/32] ide-tape: remove IDETAPE_DEBUG_BUGS, Borislav Petkov, (Sun Jan 27, 6:48 am)
[PATCH 30/32] ide-tape: remove atomic test/set macros, Borislav Petkov, (Sun Jan 27, 5:48 am)
[PATCH 24/32] ide-tape: remove unreachable code chunk, Borislav Petkov, (Sun Jan 27, 5:48 am)
Re: [PATCH 24/32] ide-tape: remove unreachable code chunk, Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 3:41 pm)
Re: [PATCH 22/32] ide-tape: struct idetape_packet_command_s:..., Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 3:40 pm)
Re: [PATCH 23/32] ide-tape: struct idetape_tape_t: shorten m..., Bartlomiej Zolnierkiewicz..., (Sat Feb 2, 7:43 pm)
Re: [RFC PATCH 26/32] ide-tape: remove packet command and st..., Bartlomiej Zolnierkiewicz..., (Sat Feb 2, 8:03 pm)
Re: [PATCH 27/32] ide-tape: remove idetape_increase_max_pipe..., Bartlomiej Zolnierkiewicz..., (Sat Feb 2, 8:07 pm)
[PATCH 28/32] ide-tape: shorten some function names, Borislav Petkov, (Sun Jan 27, 5:48 am)
Re: [PATCH 28/32] ide-tape: shorten some function names, Bartlomiej Zolnierkiewicz..., (Sat Feb 2, 8:12 pm)
[PATCH 31/32] ide-tape: remove idetape_config_t typedef, Borislav Petkov, (Sun Jan 27, 5:48 am)
Re: [PATCH 31/32] ide-tape: remove idetape_config_t typedef, Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 2:30 pm)
[PATCH 29/32] ide-tape: remove mtio.h related comments, Borislav Petkov, (Sun Jan 27, 5:48 am)
Re: [PATCH 25/32] ide-tape: simplify code branching in the i..., Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 3:42 pm)
Re: [PATCH 29/32] ide-tape: remove mtio.h related comments, Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 2:24 pm)
[PATCH 20/32] ide-tape: make function name more accurate, Borislav Petkov, (Sun Jan 27, 5:48 am)
[PATCH 16/32] ide-tape: use generic scsi commands, Borislav Petkov, (Sun Jan 27, 5:48 am)
[PATCH 19/32] ide-tape: remove unused sense packet commands., Borislav Petkov, (Sun Jan 27, 5:48 am)
Re: [PATCH 21/32] ide-tape: idetape_chrdev_direction_t:short..., Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 2:38 pm)
[PATCH 18/32] ide-tape: use generic byteorder macros, Borislav Petkov, (Sun Jan 27, 5:48 am)
[PATCH 17/32] ide-tape: remove EXPERIMENTAL driver status, Borislav Petkov, (Sun Jan 27, 5:48 am)
[PATCH 07/32] ide-tape: refactor the debug logging facility, Borislav Petkov, (Sun Jan 27, 5:47 am)
Re: [PATCH 07/32] ide-tape: refactor the debug logging facil..., Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 12:12 pm)
Re: [PATCH 08/32] ide-tape: remove struct idetape_capabiliti..., Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 12:46 pm)
Re: [PATCH 10/32] ide-tape: remove struct idetape_read_posit..., Bartlomiej Zolnierkiewicz..., (Sun Jan 27, 3:43 pm)