<div dir="ltr">Sorry for the previous mail. Something strange happened. <div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px; max-height:0px;" src="https://mailfoogae.appspot.com/t?sender=aZXVAb3ByZWFtYXRlaS5ybw%3D%3D&type=zerocontent&guid=f14feae7-e29b-4b5f-b3f2-cb79b8a4554e"><font color="#ffffff" size="1">ᐧ</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 16, 2014 at 11:46 PM, Matei Oprea <span dir="ltr"><<a href="mailto:eu@opreamatei.ro" target="_blank">eu@opreamatei.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Matei Oprea <matei@crunchbang.(none)><br>
<br>
It's easier to use kcalloc for allocating arrays. While at it<br>
also remove useless casting value.<br>
<br>
Signed-off-by: Matei Oprea <<a href="mailto:matei@okapistudio.com">matei@okapistudio.com</a>><br>
Cc: ROSEdu Kernel Community <<a href="mailto:firefly@lists.rosedu.org">firefly@lists.rosedu.org</a>><br>
---<br>
 drivers/scsi/lpfc/lpfc_init.c |    3 +--<br>
 1 file changed, 1 insertion(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c<br>
index a5769a9..aac9a90 100644<br>
--- a/drivers/scsi/lpfc/lpfc_init.c<br>
+++ b/drivers/scsi/lpfc/lpfc_init.c<br>
@@ -4854,8 +4854,7 @@ lpfc_sli_driver_resource_setup(struct lpfc_hba *phba)<br>
        }<br>
<br>
        if (!phba->sli.ring)<br>
-               phba->sli.ring = (struct lpfc_sli_ring *)<br>
-                       kzalloc(LPFC_SLI3_MAX_RING *<br>
+               phba->sli.ring = kcalloc(LPFC_SLI3_MAX_RING,<br>
                        sizeof(struct lpfc_sli_ring), GFP_KERNEL);<br>
        if (!phba->sli.ring)<br>
                return -ENOMEM;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10.4<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(80,0,80)">Thanks,</span><br style="color:rgb(80,0,80)"><div style="color:rgb(80,0,80)"><div style="color:rgb(0,0,0);font-family:Tahoma;text-align:-webkit-auto;word-wrap:break-word"><div style="text-align:-webkit-auto;word-wrap:break-word"><div style="text-align:-webkit-auto;word-wrap:break-word"><div style="margin:0px;font-size:14px;font-family:Arial;color:rgb(96,96,96)"><div style="margin:0px;color:rgb(122,122,122)"><div style="font-family:Tahoma;margin:0px"><div style="margin:0px;font-size:13px;font-family:Helvetica;color:rgb(146,146,146)"><b>Matei Oprea </b><span style="font-size:14px;font-family:Tahoma">|</span><span style="font-size:16px"><b> </b></span>Dev Team</div><div style="margin:0px;font-size:13px;font-family:Helvetica;color:rgb(146,146,146)">Phone: 0040 769 690 624 <span style="font-family:Tahoma">|</span> Skype: matei.oprea1</div><div style="margin:0px;font-size:13px;font-family:Helvetica;color:rgb(146,146,146)">Web: <a href="http://www.opreamatei.ro" target="_blank"><font color="#1155cc">www.opreamatei.</font><u>ro</u> </a><span style="font-family:Tahoma">|</span> E-mail: <a href="mailto:matei@okapistudio.com" style="color:rgb(17,85,204)" target="_blank">matei@okapistudio.com</a></div><div style="margin:0px;font-family:Helvetica;color:rgb(146,146,146)"><b>OKAPI</b>STUDIO</div></div></div></div></div></div></div></div></div>
</div>