mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
Remove duplicated unlikely() in IS_ERR()
Some drivers have duplicated unlikely() macros. IS_ERR() already has unlikely() in itself. This patch cleans up such pointless code. Signed-off-by: Hirofumi Nakagawa <[email protected]> Acked-by: David S. Miller <[email protected]> Acked-by: Jeff Garzik <[email protected]> Cc: Paul Clements <[email protected]> Cc: Richard Purdie <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: David Brownell <[email protected]> Cc: James Bottomley <[email protected]> Cc: Michael Halcrow <[email protected]> Cc: Anton Altaparmakov <[email protected]> Cc: Al Viro <[email protected]> Cc: Carsten Otte <[email protected]> Cc: Patrick McHardy <[email protected]> Cc: Paul Mundt <[email protected]> Cc: Jaroslav Kysela <[email protected]> Cc: Takashi Iwai <[email protected]> Acked-by: Mike Frysinger <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9a6f70bbed
commit
801678c5a3
17 changed files with 23 additions and 23 deletions
|
|
@ -1191,7 +1191,7 @@ static int ntfs_mft_bitmap_find_and_alloc_free_rec_nolock(ntfs_volume *vol,
|
|||
if (size) {
|
||||
page = ntfs_map_page(mftbmp_mapping,
|
||||
ofs >> PAGE_CACHE_SHIFT);
|
||||
if (unlikely(IS_ERR(page))) {
|
||||
if (IS_ERR(page)) {
|
||||
ntfs_error(vol->sb, "Failed to read mft "
|
||||
"bitmap, aborting.");
|
||||
return PTR_ERR(page);
|
||||
|
|
@ -2118,7 +2118,7 @@ static int ntfs_mft_record_format(const ntfs_volume *vol, const s64 mft_no)
|
|||
}
|
||||
/* Read, map, and pin the page containing the mft record. */
|
||||
page = ntfs_map_page(mft_vi->i_mapping, index);
|
||||
if (unlikely(IS_ERR(page))) {
|
||||
if (IS_ERR(page)) {
|
||||
ntfs_error(vol->sb, "Failed to map page containing mft record "
|
||||
"to format 0x%llx.", (long long)mft_no);
|
||||
return PTR_ERR(page);
|
||||
|
|
@ -2519,7 +2519,7 @@ mft_rec_already_initialized:
|
|||
ofs = (bit << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK;
|
||||
/* Read, map, and pin the page containing the mft record. */
|
||||
page = ntfs_map_page(vol->mft_ino->i_mapping, index);
|
||||
if (unlikely(IS_ERR(page))) {
|
||||
if (IS_ERR(page)) {
|
||||
ntfs_error(vol->sb, "Failed to map page containing allocated "
|
||||
"mft record 0x%llx.", (long long)bit);
|
||||
err = PTR_ERR(page);
|
||||
|
|
|
|||
Loading…
Reference in a new issue