mm: Remove a repeated word in a comment
PATCH 1/1 mm: Remove a repeated word in a comment
The double word `up' in a comment is repeated, thus one of them should be removed.
--- drivers/macintosh/mediabay.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/macintosh/mediabay.c +5 -5
@@ -129,7 +129,7 @@ enum {/* * Functions for polling content of media bay */ - +static u8 ohare_mb_content (struct media_bay_info *bay) {
@@ -331,12 +331,12 @@ static void keylargo_mb_un_reset_ide(struct media_bay_info* bay)static inline void set_mb_power (struct media_bay_info * bay,int onoff) { -/* Power up up and assert the bay reset line */ +/* Power up and assert the bay reset line */ if (onoff) { bay->ops->power (bay,1 ); bay->state = mb_powering_up;pr_debug ("mediabay%d: powering up\n" , bay->index); - }else { + }else {/* Make sure everything is powered down & disabled */ bay->ops->power (bay,0 ); bay->state = mb_powering_down;
@@ -577,7 +577,7 @@ static int media_bay_attach(struct macio_dev *mdev,macio_release_resources (mdev);return -ENOMEM ; } - + i = media_bay_count++; bay = &media_bays[i]; bay->mdev = mdev;
@@ -745,7 +745,7 @@ static int __init media_bay_init(void)if (!machine_is (powermac))return 0 ; -macio_register_driver (&media_bay_driver); +macio_register_driver (&media_bay_driver);return 0 ; }
Signature · 1 line
2.33.0
Le 13/11/2021 à 05:40, Jason Wang a écrit :
Quoted 2 lines
The double word `up' in a comment is repeated, thus one of them should be removed.
If you do other changes than this one, say it here as well, see below.
Quoted 11 lines
Signed-off-by Jason Wang <[email protected]>--- drivers/macintosh/mediabay.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/macintosh/mediabay.c +0
-0
drivers/macintosh/mediabay.c enum { · line 132
Quoted 5 lines
drivers/macintosh/mediabay.c +1
-1@@ -129,7 +129,7 @@ enum {/* * Functions for polling content of media bay */ - +
This change is not part of your description.
Quoted 5 lines
drivers/macintosh/mediabay.c +0
-0static u8 ohare_mb_content (struct media_bay_info *bay) {@@ -331,12 +331,12 @@ static void keylargo_mb_un_reset_ide(struct media_bay_info* bay)
drivers/macintosh/mediabay.c static void keylargo_mb_un_reset_ide(struct media_bay_info* bay) · line 339
Quoted 10 lines
drivers/macintosh/mediabay.c +2
-2static inline void set_mb_power (struct media_bay_info * bay,int onoff) { -/* Power up up and assert the bay reset line */ +/* Power up and assert the bay reset line */ if (onoff) { bay->ops->power (bay,1 ); bay->state = mb_powering_up;pr_debug ("mediabay%d: powering up\n" , bay->index); - }else { + }else {
This change is not part of your description.
drivers/macintosh/mediabay.c static int media_bay_attach(struct macio_dev *mdev, · line 580
Quoted 9 lines
drivers/macintosh/mediabay.c +1
-1/* Make sure everything is powered down & disabled */ bay->ops->power (bay,0 ); bay->state = mb_powering_down;@@ -577,7 +577,7 @@ static int media_bay_attach(struct macio_dev *mdev,macio_release_resources (mdev);return -ENOMEM ; } - +
This change is not part of your description.
drivers/macintosh/mediabay.c static int __init media_bay_init(void) · line 748
Quoted 9 lines
drivers/macintosh/mediabay.c +1
-1i = media_bay_count++; bay = &media_bays[i]; bay->mdev = mdev;@@ -745,7 +745,7 @@ static int __init media_bay_init(void)if (!machine_is (powermac))return 0 ; -macio_register_driver (&media_bay_driver); +macio_register_driver (&media_bay_driver);
This change is not part of your description.
Quoted 4 lines
drivers/macintosh/mediabay.c +0
-0return 0 ; }