I know you already got an answer, but {subfig} isn't really the best way nowadays you know. Better to replace it with {subcaption}. To give an example what I always use:
\documentclass{scrreprt}%
\RequirePackage{graphicx}%
\RequirePackage[hypcap=true]{caption}%
\RequirePackage[list=true,hypcap=true]{subcaption}% list=true ... print in List of Figures
\RequirePackage{hyperref}%
\captionsetup{hypcap=true}% -- hyperref
\captionsetup{rule=false}% reset make@caption to KOMA-Script,%
\captionsetup[subtable]{labelformat=simple,labelsep=period,listformat=simple}%
\captionsetup[subfigure]{labelformat=simple,labelsep=period,listformat=simple}%
\captionsetup{format=plain}%
\makeatletter%
\renewcommand\p@subfigure{\thefigure.}%
\renewcommand\p@subtable{\thetable.}%
\makeatother%
\begin{document}%
\chapter{Sample}%
\label{chap:Sample}%
\section{Sample section}%
\label{sec:Sample:Sample section}%
\begin{figure}[h]%
\captionsetup{justification=centering}% raggedright, justified, ...
\subcaptionbox{sample A\label{subfig:Sample:sample A}}{\includegraphics[width=0.48\textwidth]{example-image-a}}%
\hfill%
\subcaptionbox{sample B\label{subfig:Sample:sample B}}{\includegraphics[width=0.48\textwidth]{example-image-b}}%
\caption{Sample}%
\label{fig:Sample}%
\end{figure}%
\listoffigures%
\end{document}
This gives something like (You can use it with the report-class if you don't want to replace it with scrreprt-class.):