projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6cddd3
)
ide-tape: use clamp_t() rather than nested min_t()/max_t()
author
Harvey Harrison
<harvey.harrison@gmail.com>
Tue, 15 Jul 2008 19:21:41 +0000
(21:21 +0200)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Tue, 15 Jul 2008 19:21:41 +0000
(21:21 +0200)
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-tape.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-tape.c
b/drivers/ide/ide-tape.c
index 1e1f26331a24dd2c4aa3bc0028c216cd6f1c2c40..2d822df08658c05bda683a4bf7c1ae1be3337e42 100644
(file)
--- a/
drivers/ide/ide-tape.c
+++ b/
drivers/ide/ide-tape.c
@@
-2746,9
+2746,8
@@
static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
* Ensure that the number we got makes sense; limit it within
* IDETAPE_DSC_RW_MIN and IDETAPE_DSC_RW_MAX.
*/
- tape->best_dsc_rw_freq = max_t(unsigned long,
- min_t(unsigned long, t, IDETAPE_DSC_RW_MAX),
- IDETAPE_DSC_RW_MIN);
+ tape->best_dsc_rw_freq = clamp_t(unsigned long, t, IDETAPE_DSC_RW_MIN,
+ IDETAPE_DSC_RW_MAX);
printk(KERN_INFO "ide-tape: %s <-> %s: %dKBps, %d*%dkB buffer, "
"%lums tDSC%s\n",
drive->name, tape->name, *(u16 *)&tape->caps[14],