]> Gentwo Git Trees - linux/.git/commitdiff
ice: fix comment typo and correct module format string
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Tue, 25 Nov 2025 22:36:29 +0000 (14:36 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Nov 2025 02:34:21 +0000 (18:34 -0800)
- Fix a typo in the ice_fdir_has_frag() kernel-doc comment ("is" -> "if")

- Correct the NVM erase error message format string from "0x02%x" to
  "0x%02x" so the module value is printed correctly.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20251125223632.1857532-11-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_fdir.c
drivers/net/ethernet/intel/ice/ice_fw_update.c

index 26b357c0ae153d22432ae8d283fd5e46bebba5c9..b29fbdec9442455fba2d5e768f016a7591199691 100644 (file)
@@ -1121,7 +1121,7 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input,
  * ice_fdir_has_frag - does flow type have 2 ptypes
  * @flow: flow ptype
  *
- * returns true is there is a fragment packet for this ptype
+ * Return: true if there is a fragment packet for this ptype
  */
 bool ice_fdir_has_frag(enum ice_fltr_ptype flow)
 {
index d86db081579f75b2d6f415017ac40fbecfe07b77..973a13d3d92a192ad6cb3c127718737967a1126f 100644 (file)
@@ -534,7 +534,7 @@ ice_erase_nvm_module(struct ice_pf *pf, u16 module, const char *component,
        }
 
        if (completion_retval) {
-               dev_err(dev, "Firmware failed to erase %s (module 0x02%x), aq_err %s\n",
+               dev_err(dev, "Firmware failed to erase %s (module 0x%02x), aq_err %s\n",
                        component, module,
                        libie_aq_str((enum libie_aq_err)completion_retval));
                NL_SET_ERR_MSG_MOD(extack, "Firmware failed to erase flash");