Skip to content

Commit ec1f97f

Browse files
Jilin Yuanrichardweinberger
authored andcommitted
ubi: Fix repeated words in comments
Delete the redundant word 'a'. Delete the redundant word 'the'. Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 818f9e8 commit ec1f97f

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

drivers/mtd/ubi/cdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ static int verify_rsvol_req(const struct ubi_device *ubi,
672672
* @req: volumes re-name request
673673
*
674674
* This is a helper function for the volume re-name IOCTL which validates the
675-
* the request, opens the volume and calls corresponding volumes management
675+
* request, opens the volume and calls corresponding volumes management
676676
* function. Returns zero in case of success and a negative error code in case
677677
* of failure.
678678
*/

drivers/mtd/ubi/eba.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum)
377377
*
378378
* This function locks a logical eraseblock for writing if there is no
379379
* contention and does nothing if there is contention. Returns %0 in case of
380-
* success, %1 in case of contention, and and a negative error code in case of
380+
* success, %1 in case of contention, and a negative error code in case of
381381
* failure.
382382
*/
383383
static int leb_write_trylock(struct ubi_device *ubi, int vol_id, int lnum)

drivers/mtd/ubi/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ static int self_check_ec_hdr(const struct ubi_device *ubi, int pnum,
11471147
* @ubi: UBI device description object
11481148
* @pnum: the physical eraseblock number to check
11491149
*
1150-
* This function returns zero if the erase counter header is all right and and
1150+
* This function returns zero if the erase counter header is all right and
11511151
* a negative error code if not or if an error occurred.
11521152
*/
11531153
static int self_check_peb_ec_hdr(const struct ubi_device *ubi, int pnum)

drivers/mtd/ubi/ubi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void ubi_err(const struct ubi_device *ubi, const char *fmt, ...);
8686
* Error codes returned by the I/O sub-system.
8787
*
8888
* UBI_IO_FF: the read region of flash contains only 0xFFs
89-
* UBI_IO_FF_BITFLIPS: the same as %UBI_IO_FF, but also also there was a data
89+
* UBI_IO_FF_BITFLIPS: the same as %UBI_IO_FF, but also there was a data
9090
* integrity error reported by the MTD driver
9191
* (uncorrectable ECC error in case of NAND)
9292
* UBI_IO_BAD_HDR: the EC or VID header is corrupted (bad magic or CRC)
@@ -281,7 +281,7 @@ struct ubi_eba_leb_desc {
281281

282282
/**
283283
* struct ubi_volume - UBI volume description data structure.
284-
* @dev: device object to make use of the the Linux device model
284+
* @dev: device object to make use of the Linux device model
285285
* @cdev: character device object to create character device
286286
* @ubi: reference to the UBI device description object
287287
* @vol_id: volume ID
@@ -439,7 +439,7 @@ struct ubi_debug_info {
439439

440440
/**
441441
* struct ubi_device - UBI device description structure
442-
* @dev: UBI device object to use the the Linux device model
442+
* @dev: UBI device object to use the Linux device model
443443
* @cdev: character device object to create character device
444444
* @ubi_num: UBI device number
445445
* @ubi_name: UBI device name

drivers/mtd/ubi/wl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi,
376376
* refill_wl_user_pool().
377377
* @ubi: UBI device description object
378378
*
379-
* This function returns a a wear leveling entry in case of success and
379+
* This function returns a wear leveling entry in case of success and
380380
* NULL in case of failure.
381381
*/
382382
static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi)
@@ -429,7 +429,7 @@ static int prot_queue_del(struct ubi_device *ubi, int pnum)
429429
/**
430430
* sync_erase - synchronously erase a physical eraseblock.
431431
* @ubi: UBI device description object
432-
* @e: the the physical eraseblock to erase
432+
* @e: the physical eraseblock to erase
433433
* @torture: if the physical eraseblock has to be tortured
434434
*
435435
* This function returns zero in case of success and a negative error code in
@@ -1016,7 +1016,7 @@ static int ensure_wear_leveling(struct ubi_device *ubi, int nested)
10161016

10171017
/*
10181018
* If the ubi->scrub tree is not empty, scrubbing is needed, and the
1019-
* the WL worker has to be scheduled anyway.
1019+
* WL worker has to be scheduled anyway.
10201020
*/
10211021
if (!ubi->scrub.rb_node) {
10221022
#ifdef CONFIG_MTD_UBI_FASTMAP

0 commit comments

Comments
 (0)