mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Fix gcc cast warnings
Gcc -Wall warn: 'lacks a cast' Gcc -Wall warn: 'comparison between pointer and integer' Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
+2
-2
@@ -1545,12 +1545,12 @@ sa_attr_register_sync(sa_handle_t *hdl, dmu_tx_t *tx)
|
||||
|
||||
mutex_enter(&sa->sa_lock);
|
||||
|
||||
if (!sa->sa_need_attr_registration || sa->sa_master_obj == NULL) {
|
||||
if (!sa->sa_need_attr_registration || sa->sa_master_obj == 0) {
|
||||
mutex_exit(&sa->sa_lock);
|
||||
return;
|
||||
}
|
||||
|
||||
if (sa->sa_reg_attr_obj == NULL) {
|
||||
if (sa->sa_reg_attr_obj == 0) {
|
||||
sa->sa_reg_attr_obj = zap_create(hdl->sa_os,
|
||||
DMU_OT_SA_ATTR_REGISTRATION, DMU_OT_NONE, 0, tx);
|
||||
VERIFY(zap_add(hdl->sa_os, sa->sa_master_obj,
|
||||
|
||||
Reference in New Issue
Block a user