Skip to contentSkip to conversation

+ lib-libcrc32cc-use-ptr_err_or_zero.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Apr 30, 2014 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + lib-libcrc32cc-use-ptr_err_or_zero.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Wed, 30 Apr 2014 13:14:33 -0700

The patch titled
Subject: lib/libcrc32c.c: use PTR_ERR_OR_ZERO
has been added to the -mm tree. Its filename is
lib-libcrc32cc-use-ptr_err_or_zero.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/lib-libcrc32cc-use-ptr_err_or_zero.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/lib-libcrc32cc-use-ptr_err_or_zero.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Fabian Frederick <[email protected]>
Subject: lib/libcrc32c.c: use PTR_ERR_OR_ZERO

replace IS_ERR/PTR_ERR

---

 lib/libcrc32c.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
lib/libcrc32c.c renamed from lib/libcrc32c.c~lib-libcrc32cc-use-ptr_err_or_zero +1 -4
diff -puN lib/libcrc32c.c~lib-libcrc32cc-use-ptr_err_or_zero lib/libcrc32c.c
@@ -62,10 +62,7 @@ EXPORT_SYMBOL(crc32c);
 static int __init libcrc32c_mod_init(void)
 {
 	tfm = crypto_alloc_shash("crc32c", 0, 0);
-	if (IS_ERR(tfm))
-		return PTR_ERR(tfm);
-
-	return 0;
+	return PTR_ERR_OR_ZERO(tfm);
 }
 
 static void __exit libcrc32c_mod_fini(void)

_

Patches currently in -mm which might be from [email protected] are

ntfs-remove-null-value-assignments.patch fs-configs-itemc-kernel-doc-fixes-clean-up.patch ocfs2-remove-null-assignments-on-static.patch fs-ocfs2-superc-use-ocfs2_max_vol_label_len-and-strlcpy.patch fs-9p-v9fsc-add-__init-to-v9fs_sysfs_init.patch fs-9p-kerneldoc-fixes.patch mm-slubc-convert-printk-to-pr_foo.patch mm-slubc-convert-vnsprintf-static-to-va_format.patch mm-memory_hotplugc-use-pfn_down.patch mm-memblockc-use-pfn_down.patch mm-zbudc-make-size-unsigned-like-unique-callsite.patch sys_sgetmask-sys_ssetmask-add-config_sgetmask_syscall.patch lib-libcrc32cc-use-ptr_err_or_zero.patch fs-binfmt_elfc-fix-bool-assignements.patch fs-autofs4-dev-ioctlc-add-__init-to-autofs_dev_ioctl_init.patch fs-befs-linuxvfsc-replace-strncpy-by-strlcpy.patch fs-befs-btreec-replace-strncpy-by-strlcpy-coding-style-fixing.patch fs-befs-linuxvfsc-remove-positive-test-on-sector_t.patch fs-befs-kernel-doc-fixes.patch fs-isofs-logging-clean-up.patch fs-ufs-ballocc-remove-err-parameter-in-ufs_add_fragments.patch fs-reiserfs-bitmapc-coding-style-fixes.patch fs-affs-filec-remove-unnecessary-function-parameters.patch fs-affs-convert-printk-to-pr_foo.patch fs-affs-pr_debug-cleanup.patch fs-pstore-logging-clean-up.patch fs-pstore-logging-clean-up-fix.patch
linux-next.patch
ufs-sb-mutex-merge-mutex_destroy.patch